You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can not create table with Spark 2.4 DataFrame #1372
scala> df.
| write.
| format("iceberg").
| mode("overwrite").
| save("default.iceberg_test")
org.apache.iceberg.exceptions.NoSuchTableException: Table does not exist: default.iceberg_test
at org.apache.iceberg.BaseMetastoreCatalog.loadTable(BaseMetastoreCatalog.java:141)
at org.apache.iceberg.spark.source.IcebergSource.findTable(IcebergSource.java:142)
at org.apache.iceberg.spark.source.IcebergSource.getTableAndResolveHadoopConfiguration(IcebergSource.java:171)
at org.apache.iceberg.spark.source.IcebergSource.createWriter(IcebergSource.java:95)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:254)
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:228)
... 53 elided
On iceberg document website, there's appending and overwriting data with Spark 2.4 DataFrame, but there's no creating table with Spark 2.4 DataFrame.
Activity
zhangdove commentedon Aug 25, 2020
If I understand correctly, Spark 2.4 does not support creating tables in SQL spark guide.
Maybe you can use the Iceberg API to build table and then write data createTable.
fmouaffo commentedon Apr 12, 2022
Were you able to use the Iceberg API to build table in a spark 2.4 configuration?
Fokko commentedon Sep 27, 2023
Thanks for raising this. Closing this since Spark 2.4 has been deprecated a while ago.
Merge apple-1.5.0.x-release into apple-1.5.0.x (apache#1372)