rakesh-tmdc commented on issue #5424:
URL: https://github.com/apache/iceberg/issues/5424#issuecomment-2139259265

   > I am also facing similar kind of issue with merge into functionality. 
spark 3.2 + iceberg 0.13.1:
   > 
   > spark-sql: merge into `spark_catalog`.`default`.`merge_test` as t using 
(select 1 as id,'123456' as `data`,'flink1.14.5' as 
`category`,cast('2016-08-31' as date) as ts) as s on t.id=s.id when matched 
then delete when not matched then insert *;
   > 
   > spark-error: Error in query: Project [id#50L, data#51, category#52, ts#53] 
+- RowFilterAndDataMaskingMarker +- RelationV2[id#50L, data#51, category#52, 
ts#53] spark_catalog.default.merge_test is not an Iceberg table
   > 
   > Is it the reason for the temporary table (named s)??
   > 
   > scala-source-code: 
org.apache.spark.sql.catalyst.analysis.RewriteMergeIntoTable
   > 
   > ```
   >  EliminateSubqueryAliases(aliasedTable) match {
   >     case r: DataSourceV2Relation => xxxxxxxx
   >    case p =>
   >       throw new AnalysisException(s"$p is not an Iceberg table")
   > ```
   > 
   > Why does such a problem arise????
   
   
https://stackoverflow.com/questions/73424454/spark-iceberg-merge-into-issue-caused-by-org-apache-spark-sql-analysisexcep
   
   I ran into same issue, try 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.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

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


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

Reply via email to