apache / iceberg

Apache Iceberg
https://iceberg.apache.org/
Apache License 2.0
6.44k stars 2.22k forks source link

Cannot drop table with AWS Glue Catalog #9586

Open duwanqiebi opened 9 months ago

duwanqiebi commented 9 months ago

Apache Iceberg version

1.4.0

Query engine

Spark 3.4.1

Please describe the bug 🐞

Create Table, write, read is OK. But I get the following error when I drop table:

spark.sql("drop table $db.test_iceberg_0 purge")

pyspark.errors.exceptions.captured.AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to fetch table test_iceberg_0. StorageDescriptor#InputFormat cannot be null for table: test_iceberg_0 (Service: null; Status Code: 0; Error Code: null; Request ID: null; Proxy: null)

nastra commented 9 months ago

Might be similar to https://github.com/apache/iceberg/issues/5565, I wonder if you're missing the catalog name in the table identifier

duwanqiebi commented 9 months ago

@nastra Thank you. But I have tried with drop table spark_catalog.$db_name.test_iceberg_0 and got the same error.

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.