You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2020/07/24 06:39:40 UTC

[GitHub] [iceberg] HeartSaVioR commented on issue #1144: 【Spark3】 Could not run "select * from db1.tab2.history" to get table history.

HeartSaVioR commented on issue #1144:
URL: https://github.com/apache/iceberg/issues/1144#issuecomment-663370540


   I've also encountered this issue, and found the reason - Spark's default catalog still has same limitation in different code path, so if users decide to override default Spark catalog with Iceberg the limitation comes out.
   
   ```
   org.apache.spark.sql.AnalysisException: The namespace in session catalog must have exactly one name part: spark_catalog.default.table1.files;
     at org.apache.spark.sql.connector.catalog.LookupCatalog$SessionCatalogAndIdentifier$.unapply(LookupCatalog.scala:65)
     at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveRelations$.org$apache$spark$sql$catalyst$analysis$Analyzer$ResolveRelations$$lookupRelation(Analyzer.scala:1009)
     at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveRelations$$anonfun$apply$9.applyOrElse(Analyzer.scala:977)
     at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveRelations$$anonfun$apply$9.applyOrElse(Analyzer.scala:962)
     at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.$anonfun$resolveOperatorsUp$3(AnalysisHelper.scala:90)
     at org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:72)
   ...
   ```
   
   Using custom catalog would work, like `iceberg_catalog`.
   
   I'm not sure whether it's expect or not - in other words, may need to decide whether it is a doc issue in Iceberg or a bug in Spark. @rdblue Would you mind if I ask your voice on this?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org