Tathagata Das created SPARK-15248:
-------------------------------------
Summary: Partition added with ALTER TABLE to a hive partitioned
table is not read while querying
Key: SPARK-15248
URL: https://issues.apache.org/jira/browse/SPARK-15248
Project: Spark
Issue Type: Bug
Components: SQL
Reporter: Tathagata Das
Assignee: Tathagata Das
Table partitions can be added with locations different from default warehouse
location of a hive table.
{{ CREATE TABLE parquetTable (a int) PARTITIONED BY (b int) STORED AS parquet
}}
{{ ALTER TABLE parquetTable ADD PARTITION (b=1) LOCATION '/path/1' }}
Querying such a table throws error as the MetastoreFileCatalog does not list
the added partition directory, it only lists the default base location.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]