-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQL: Remove slightly used meta commands (#37506)
Remove SYS CATALOGS and SYS TABLE TYPES as they are a subset of SYS TABLES (and thus somewhat redundant) and used only by JDBC. Close #37409 (cherry picked from commit 023bb2f)
- Loading branch information
Showing
17 changed files
with
788 additions
and
1,141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 2 additions & 10 deletions
12
x-pack/plugin/sql/qa/src/main/resources/setup_mock_metadata_get_table_types.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
CREATE TABLE mock ( | ||
TABLE_SCHEM VARCHAR, | ||
TABLE_NAME VARCHAR, | ||
TABLE_TYPE VARCHAR, | ||
REMARKS VARCHAR, | ||
TYPE_CAT VARCHAR, | ||
TYPE_SCHEM VARCHAR, | ||
TYPE_NAME VARCHAR, | ||
SELF_REFERENCING_COL_NAME VARCHAR, | ||
REF_GENERATION VARCHAR | ||
) AS | ||
SELECT '', 'test1', 'BASE TABLE', '', null, null, null, null, null FROM DUAL | ||
SELECT 'ALIAS' FROM DUAL | ||
UNION ALL | ||
SELECT '', 'test2', 'BASE TABLE', '', null, null, null, null, null FROM DUAL | ||
SELECT 'BASE TABLE' FROM DUAL | ||
; |
15 changes: 15 additions & 0 deletions
15
x-pack/plugin/sql/qa/src/main/resources/setup_mock_metadata_get_types_of_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE mock ( | ||
TABLE_SCHEM VARCHAR, | ||
TABLE_NAME VARCHAR, | ||
TABLE_TYPE VARCHAR, | ||
REMARKS VARCHAR, | ||
TYPE_CAT VARCHAR, | ||
TYPE_SCHEM VARCHAR, | ||
TYPE_NAME VARCHAR, | ||
SELF_REFERENCING_COL_NAME VARCHAR, | ||
REF_GENERATION VARCHAR | ||
) AS | ||
SELECT '', 'test1', 'BASE TABLE', '', null, null, null, null, null FROM DUAL | ||
UNION ALL | ||
SELECT '', 'test2', 'BASE TABLE', '', null, null, null, null, null FROM DUAL | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.