-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-37878][SQL] Migrate SHOW CREATE TABLE to use v2 command by default #35204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ SHOW CREATE TABLE tbl | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE TABLE `default`.`tbl` ( | ||
| CREATE TABLE default.tbl ( | ||
| `a` INT, | ||
| `b` STRING, | ||
| `c` INT) | ||
|
|
@@ -44,7 +44,7 @@ SHOW CREATE TABLE tbl | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE TABLE `default`.`tbl` ( | ||
| CREATE TABLE default.tbl ( | ||
| `a` INT, | ||
| `b` STRING, | ||
| `c` INT) | ||
|
|
@@ -75,7 +75,7 @@ SHOW CREATE TABLE tbl | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE TABLE `default`.`tbl` ( | ||
| CREATE TABLE default.tbl ( | ||
| `a` INT, | ||
| `b` STRING, | ||
| `c` INT) | ||
|
|
@@ -105,7 +105,7 @@ SHOW CREATE TABLE tbl | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE TABLE `default`.`tbl` ( | ||
| CREATE TABLE default.tbl ( | ||
| `a` INT, | ||
| `b` STRING, | ||
| `c` INT) | ||
|
|
@@ -135,7 +135,7 @@ SHOW CREATE TABLE tbl | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE TABLE `default`.`tbl` ( | ||
| CREATE TABLE default.tbl ( | ||
| `b` STRING, | ||
| `c` INT, | ||
| `a` INT) | ||
|
|
@@ -165,7 +165,7 @@ SHOW CREATE TABLE tbl | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE TABLE `default`.`tbl` ( | ||
| CREATE TABLE default.tbl ( | ||
| `a` INT, | ||
| `b` STRING, | ||
| `c` INT) | ||
|
|
@@ -197,7 +197,7 @@ SHOW CREATE TABLE tbl | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE TABLE `default`.`tbl` ( | ||
| CREATE TABLE default.tbl ( | ||
| `a` INT, | ||
| `b` STRING, | ||
| `c` INT) | ||
|
|
@@ -227,7 +227,7 @@ SHOW CREATE TABLE tbl | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE TABLE `default`.`tbl` ( | ||
| CREATE TABLE default.tbl ( | ||
| `a` INT, | ||
| `b` STRING, | ||
| `c` INT) | ||
|
|
@@ -257,7 +257,7 @@ SHOW CREATE TABLE tbl | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE TABLE `default`.`tbl` ( | ||
| CREATE TABLE default.tbl ( | ||
| `a` FLOAT, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to be consistent, shall we also only quote the column name if needed? This is can be done in a new PR, as it's not related to v2 command migration.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok. I will do it. |
||
| `b` DECIMAL(10,0), | ||
| `c` DECIMAL(10,0), | ||
|
|
@@ -295,7 +295,7 @@ SHOW CREATE TABLE view_SPARK_30302 AS SERDE | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE VIEW `default`.`view_SPARK_30302` ( | ||
| CREATE VIEW default.view_SPARK_30302 ( | ||
| `aaa`, | ||
| `bbb`) | ||
| AS SELECT a, b FROM tbl | ||
|
|
@@ -306,7 +306,7 @@ SHOW CREATE TABLE view_SPARK_30302 | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE VIEW `default`.`view_SPARK_30302` ( | ||
| CREATE VIEW default.view_SPARK_30302 ( | ||
| `aaa`, | ||
| `bbb`) | ||
| AS SELECT a, b FROM tbl | ||
|
|
@@ -335,7 +335,7 @@ SHOW CREATE TABLE view_SPARK_30302 AS SERDE | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE VIEW `default`.`view_SPARK_30302` ( | ||
| CREATE VIEW default.view_SPARK_30302 ( | ||
| `aaa` COMMENT 'comment with \'quoted text\' for aaa', | ||
| `bbb`) | ||
| COMMENT 'This is a comment with \'quoted text\' for view' | ||
|
|
@@ -347,7 +347,7 @@ SHOW CREATE TABLE view_SPARK_30302 | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE VIEW `default`.`view_SPARK_30302` ( | ||
| CREATE VIEW default.view_SPARK_30302 ( | ||
| `aaa` COMMENT 'comment with \'quoted text\' for aaa', | ||
| `bbb`) | ||
| COMMENT 'This is a comment with \'quoted text\' for view' | ||
|
|
@@ -377,7 +377,7 @@ SHOW CREATE TABLE view_SPARK_30302 AS SERDE | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE VIEW `default`.`view_SPARK_30302` ( | ||
| CREATE VIEW default.view_SPARK_30302 ( | ||
| `aaa`, | ||
| `bbb`) | ||
| TBLPROPERTIES ( | ||
|
|
@@ -391,7 +391,7 @@ SHOW CREATE TABLE view_SPARK_30302 | |
| -- !query schema | ||
| struct<createtab_stmt:string> | ||
| -- !query output | ||
| CREATE VIEW `default`.`view_SPARK_30302` ( | ||
| CREATE VIEW default.view_SPARK_30302 ( | ||
| `aaa`, | ||
| `bbb`) | ||
| TBLPROPERTIES ( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.