wangyum opened a new pull request #25061: [SPARK-28262][SQL] Support `DROP 
GLOBAL TEMPORARY VIEW`
URL: https://github.com/apache/spark/pull/25061
 
 
   ## What changes were proposed in this pull request?
   
   We create global temporary view by:
   ```sql
   CREATE GLOBAL TEMPORARY VIEW temp_view AS SELECT 1 AS col1;
   ```
   But we need to specify `spark.sql.globalTempDatabase` when drop it:
   ```sql
   DROP VIEW global_temp.temp_view;
   ```
   Which is not very convenient, this PR add support `DROP GLOBAL TEMPORARY 
VIEW`.
   Arter this PR:
   ```sql
   DROP GLOBAL TEMPORARY VIEW temp_view;
   ```
   
   
   Drop view related code:
   
https://github.com/apache/spark/blob/447bfdec830ba5eaaee791e86caad39f4f6661eb/sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala#L194-L219
   
   ## How was this patch tested?
   
   unit tests
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to