Affects Version/s: 1.0.0
Fix Version/s: 1.2.0
When Hive table schema contains a portion of the schema of a Parquet file, then the access to the values should work if the field names match the schema. This does not work when a struct<> data type is in the schema, and the Hive schema contains just a portion of the struct elements. Hive throws an error instead.
This is the example and how to reproduce:
First, create a parquet table, and add some values on it:
Note: srcpart could be any table. It is just used to leverage the INSERT statement.
The above table example generates the following Parquet file schema:
Afterwards, I create a table that contains just a portion of the schema, and load the Parquet file generated above, a query will fail on that table:
I would expect that Parquet can access the matched names, but Hive throws an error instead.