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="9f6601b083ebc428-88a67fc2-47d04f95-853db73c-30aabc9af7b205487af5092e"><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="b029eb1f4d296f83-d20d6efd-4ab14caf-97899a0b-fd1c5f08608d111dcb933f88"><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="e82a49f87cc601e6-ded6c2fe-4a414396-abfcafe6-863e1b9f4b552894a01ea539"><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>

...