Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: serde2.av

...

Avro type

Becomes Hive type

Note

null

void

boolean

boolean

int

int

long

bigint

float

float

double

double

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="08b30307e36d68e8-f5705514-465d44b7-afa8b8dc-57c1f30f8d791028409cc7bc"><ac:plain-text-body><![CDATA[

bytes

binary

Bytes are converted to Array[smallint] prior to Hive 0.12.0

]]></ac:plain-text-body></ac:structured-macro>

string

string

record

struct

map

map

list

array

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7bdf99bae0c05552-79284384-4754494e-8ee18809-66b6a96632cff93bc35c9d01"><ac:plain-text-body><![CDATA[

union

union

Unions of [T, null] transparently convert to nullable T, other types translate directly to Hive's unions of those types. However, unions were introduced in Hive 7 and are not currently able to be used in where/group-by statements. They are essentially look-at-only. Because the AvroSerde transparently converts [T,null], to nullable T, this limitation only applies to unions of multiple types or unions not of a single type and null.

]]></ac:plain-text-body></ac:structured-macro>

enum

string

Hive has no concept of enums

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c15b0956fe20cfdb-4eab9161-4f5347f3-9e25946d-cd39f26b633fcc7847985be5"><ac:plain-text-body><![CDATA[

fixed

binary

Fixeds are converted to Array[smallint] prior to Hive 0.12.0

]]></ac:plain-text-body></ac:structured-macro>

...