[ 
https://issues.apache.org/jira/browse/SPARK-29632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985694#comment-16985694
 ] 

Xiao Li commented on SPARK-29632:
---------------------------------

It is risky to support this. For the managed tables, the data will be dropped 
when the corresponding database is dropped [the whole directory is deleted]. 
Thus, if we really need this, this is only allowed for the existing EXTERNAL 
tables. 

> Support ALTER TABLE [relname] SET SCHEMA [dbname]
> -------------------------------------------------
>
>                 Key: SPARK-29632
>                 URL: https://issues.apache.org/jira/browse/SPARK-29632
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Takeshi Yamamuro
>            Priority: Major
>
> {code}
> CREATE SCHEMA temp_view_test;
> CREATE TABLE tx1 (x1 int, x2 int, x3 string) using parquet;
> ALTER TABLE tx1 SET SCHEMA temp_view_test;
> {code}
> {code}
> ALTER TABLE [ IF EXISTS ] name
>     SET SCHEMA new_schema
> {code}
> https://www.postgresql.org/docs/current/sql-altertable.html



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to