- 992 Views
- 0 replies
- 0 kudos
When we run the sql statements "DROP TABLE .... CREATE TABLE" for the same table in multiple places (different notebooks, jobs, ...) some notebooks may not see the most recent schema / content.
- 992 Views
- 0 replies
- 0 kudos
- 1489 Views
- 1 replies
- 0 kudos
Can the database owner always drop a table?
- 1489 Views
- 1 replies
- 0 kudos
Latest Reply
Table owner or administrator. Before DBR 7.x, the database owner can. As of DBR 7.x, the database owner cannot. This will be changing soon.
- 18963 Views
- 4 replies
- 0 kudos
When I try to run the command
spark.sql("DROP TABLE IF EXISTS table_to_drop")
and the table does not exist, I get the following error:
AnalysisException: "Table or view 'table_to_drop' not found in database 'null';;\nDropTableCommand `table_to_drop...
- 18963 Views
- 4 replies
- 0 kudos
Latest Reply
I agree about this being a usability bug. Documentation clearly states that if the optional flag "IF EXISTS" is provided that the statement will do nothing.https://docs.databricks.com/spark/latest/spark-sql/language-manual/drop-table.htmlDrop Table ...
3 More Replies