https://github.com/apache/spark
Revision dd69ac620c5dea38d22ca63488b6fdb430e81da2 authored by Wenchen Fan on 31 October 2017, 10:35:32 UTC, committed by Wenchen Fan on 31 October 2017, 10:36:52 UTC
We made a mistake in https://github.com/apache/spark/pull/16944 . In `HiveMetastoreCatalog#inferIfNeeded` we infer the data schema, merge with full schema, and return the new full schema. At caller side we treat the full schema as data schema and set it to `HadoopFsRelation`.

This doesn't cause any problem because both parquet and orc can work with a wrong data schema that has extra columns, but it's better to fix this mistake.

N/A

Author: Wenchen Fan <wenchen@databricks.com>

Closes #19615 from cloud-fan/infer.

(cherry picked from commit 4d9ebf3835dde1abbf9cff29a55675d9f4227620)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
1 parent 7f8236c
History
Tip revision: dd69ac620c5dea38d22ca63488b6fdb430e81da2 authored by Wenchen Fan on 31 October 2017, 10:35:32 UTC
[SPARK-19611][SQL][FOLLOWUP] set dataSchema correctly in HiveMetastoreCatalog.convertToLogicalRelation
Tip revision: dd69ac6

README.md

back to top