You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/05/31 18:20:13 UTC
[jira] [Commented] (SPARK-15635) ALTER TABLE RENAME doesn't work
for datasource tables
[ https://issues.apache.org/jira/browse/SPARK-15635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15308277#comment-15308277 ]
Apache Spark commented on SPARK-15635:
--------------------------------------
User 'andrewor14' has created a pull request for this issue:
https://github.com/apache/spark/pull/13416
> ALTER TABLE RENAME doesn't work for datasource tables
> -----------------------------------------------------
>
> Key: SPARK-15635
> URL: https://issues.apache.org/jira/browse/SPARK-15635
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: Andrew Or
> Assignee: Andrew Or
>
> {code}
> scala> sql("CREATE TABLE students (age INT, name STRING) USING parquet")
> scala> sql("ALTER TABLE students RENAME TO teachers")
> scala> spark.table("teachers").show()
> com.google.common.util.concurrent.UncheckedExecutionException: org.apache.spark.sql.AnalysisException: Path does not exist: file:/Users/andrew/Documents/dev/spark/andrew-spark/spark-warehouse/students;
> at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4882)
> at com.google.common.cache.LocalCache$LocalLoadingCache.apply(LocalCache.java:4898)
> at org.apache.spark.sql.hive.HiveMetastoreCatalog.lookupRelation(HiveMetastoreCatalog.scala:170)
> at org.apache.spark.sql.hive.HiveSessionCatalog.lookupRelation(HiveSessionCatalog.scala:67)
> at org.apache.spark.sql.SparkSession.table(SparkSession.scala:583)
> at org.apache.spark.sql.SparkSession.table(SparkSession.scala:579)
> ... 48 elided
> Caused by: org.apache.spark.sql.AnalysisException: Path does not exist: file:/Users/andrew/Documents/dev/spark/andrew-spark/spark-warehouse/students;
> at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$12.apply(DataSource.scala:351)
> at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$12.apply(DataSource.scala:340)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org