You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:14:00 UTC
[jira] [Resolved] (SPARK-19577) insert into a partition datasource
table with InMemoryCatalog after the partition location alter by alter
command failed
[ https://issues.apache.org/jira/browse/SPARK-19577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-19577.
----------------------------------
Resolution: Incomplete
> insert into a partition datasource table with InMemoryCatalog after the partition location alter by alter command failed
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-19577
> URL: https://issues.apache.org/jira/browse/SPARK-19577
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.2.0
> Reporter: Song Jun
> Priority: Major
> Labels: bulk-closed
>
> If we use InMemoryCatalog, then we insert into a partition datasource table, which partition location has changed by `alter table t partition(a="xx") set location $newpath`, the insert operation is ok, and the data can be insert into $newpath, while if we then select partition from the table, it will not return the value we inserted.
> The reason is that the InMemoryFileIndex to inferPartition by the table's rootPath, it does not track the user specific $newPath which provided by alter command.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org