MaxGekk commented on a change in pull request #31524: URL: https://github.com/apache/spark/pull/31524#discussion_r578561145
########## File path: docs/sql-ref-syntax-ddl-drop-table.md ########## @@ -26,6 +26,8 @@ if the table is not `EXTERNAL` table. If the table is not present it throws an e In case of an external table, only the associated metadata information is removed from the metastore database. +If the table is cached, the command uncaches the table and all its dependents. Review comment: ```sql spark-sql> CREATE TABLE tbl (c0 INT); spark-sql> INSERT INTO tbl SELECT 0; spark-sql> CACHE TABLE tbl; spark-sql> CREATE TEMP VIEW v1 AS SELECT c0 + 1 FROM tbl; spark-sql> SELECT * FROM v1; 1 spark-sql> CACHE TABLE v1; spark-sql> SELECT * FROM v1; 1 spark-sql> DROP TABLE tbl; spark-sql> SELECT * FROM v1; Error in query: Table or view not found: tbl; line 1 pos 19; 'Project [*] +- 'SubqueryAlias v1 +- View (`v1`, ['(c0 + 1)]) +- 'Project [upcast('(c0 + 1), IntegerType) AS (c0 + 1)#156] +- 'Project [unresolvedalias(('c0 + 1), None)] +- 'UnresolvedRelation [tbl], [], false ``` ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org