spark-instrumented-optimizer/sql/hive
Marcelo Vanzin 84b5b16ea6 [SPARK-21617][SQL] Store correct table metadata when altering schema in Hive metastore.
For Hive tables, the current "replace the schema" code is the correct
path, except that an exception in that path should result in an error, and
not in retrying in a different way.

For data source tables, Spark may generate a non-compatible Hive table;
but for that to work with Hive 2.1, the detection of data source tables needs
to be fixed in the Hive client, to also consider the raw tables used by code
such as `alterTableSchema`.

Tested with existing and added unit tests (plus internal tests with a 2.1 metastore).

Author: Marcelo Vanzin <vanzin@cloudera.com>

Closes #18849 from vanzin/SPARK-21617.
2017-08-21 15:09:02 -07:00
..
compatibility/src/test/scala/org/apache/spark/sql/hive/execution [SPARK-20126][SQL] Remove HiveSessionState 2017-03-28 23:14:31 +08:00
src [SPARK-21617][SQL] Store correct table metadata when altering schema in Hive metastore. 2017-08-21 15:09:02 -07:00
pom.xml [MINOR][BUILD] Remove duplicate test-jar:test spark-sql dependency from Hive module 2017-08-06 16:48:49 -07:00