Class: Hog::HiveSchema

Inherits:
PigSchema show all
Defined in:
lib/hog/hive_schema.rb

Constant Summary collapse

XLATEMAP =
{
  "chararray" => "string"
}

Instance Method Summary collapse

Methods inherited from PigSchema

#schema

Instance Method Details

#field(f) ⇒ Object



7
8
9
# File 'lib/hog/hive_schema.rb', line 7

def field(f)
  "#{f.name} #{XLATEMAP[f.type] || f.type}"
end