Commit Graph

3 Commits

Author SHA1 Message Date
Lenni Kuff
fc7733d530 Fix resolution of mismatched column names that come from the deserializer (ex. Avro tables)
Fixes a bug (regression) where the catalog server was not properly resolving column
names when a table's column definition did not match its Avro schema definition.
The expected behavior in this case is that the the Avro scehma definition should be
used instead of the table columns. We had no test tables that were mismatched so
this wasn't caught.
This loading of the schema and columns happens when a table's metadata is loaded, so
the fix is to just add a toThrift() to Column and not reference
metastore.getSd().getCols() directly since it might be the "wrong" set of columns.

Change-Id: I341a3a8834f5748f90c246d2093ddb983ecfdd4f
Reviewed-on: http://gerrit.ent.cloudera.com:8080/770
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: Lenni Kuff <lskuff@cloudera.com>
2014-01-08 10:53:44 -08:00
Lenni Kuff
be1d42c05a IMPALA-538: Look for Avro schema in SERDEPROPERTIES as well as TBLPROPERTIES
Change-Id: If5c0b36d5a3963176b07a0cb1ea680e3e36b2f96
Reviewed-on: http://gerrit.ent.cloudera.com:8080/248
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: Lenni Kuff <lskuff@cloudera.com>
2014-01-08 10:52:15 -08:00
Skye Wanderman-Milne
3fecdeb793 IMPALA-441: support default values for Avro tables 2014-01-08 10:51:39 -08:00