-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#3800]fix(trino-connector): EXPLAIN command can not show query optim…
…ize details (#3801) ### What changes were proposed in this pull request? The EXPLAIN command cannot display query optimization details when using the Gravitino Trino connector ### Why are the changes needed? Fix: #3800 ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? IT
- Loading branch information
Showing
17 changed files
with
305 additions
and
261 deletions.
There are no files selected for viewing
File renamed without changes.
51 changes: 51 additions & 0 deletions
51
...ion-test/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/00004_query_pushdown.txt
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,51 @@ | ||
CREATE SCHEMA | ||
|
||
USE | ||
|
||
CREATE TABLE | ||
|
||
CREATE TABLE | ||
|
||
INSERT: 1500 rows | ||
|
||
INSERT: 15000 rows | ||
|
||
"Trino version: % | ||
% | ||
└─ TableScan[table = gt_mysql:gt_db1.customer->gt_db1.customer gt_db1.customer limit=10 columns=[custkey:bigint:BIGINT]] | ||
Layout: [custkey:bigint] | ||
% | ||
" | ||
|
||
"Trino version: % | ||
% | ||
└─ ScanFilter[table = gt_mysql:gt_db1.customer->gt_db1.customer gt_db1.customer, filterPredicate = ""$like""(""phone"", ""$literal$""(from_base64('DgAAAFZBUklBQkxFX1dJRFRIAQAAAAEAAAALAAAAAAsAAAAGAAAAJTIzNDIlAA==')))] | ||
Layout: [custkey:bigint, name:varchar(25), address:varchar(40), nationkey:bigint, phone:varchar(15), acctbal:decimal(12,2), mktsegment:varchar(10), comment:varchar(117)] | ||
% | ||
" | ||
|
||
"Trino version: % | ||
% | ||
└─ TableScan[table = gt_mysql:gt_db1.orders->Query[SELECT sum(`totalprice`) AS `_pfgnrtd_0` FROM `gt_db1`.`orders`] columns=[_pfgnrtd_0:decimal(38,2):decimal]] | ||
Layout: [_pfgnrtd:decimal(38,2)] | ||
% | ||
" | ||
|
||
"Trino version: % | ||
% | ||
└─ TableScan[table = gt_mysql:gt_db1.orders->Query[SELECT `orderdate`, sum(`totalprice`) AS `_pfgnrtd_0` FROM `gt_db1`.`orders` GROUP BY `orderdate`] sortOrder=[orderdate:date:DATE ASC NULLS LAST] limit=10 columns=[orderdate:date:DATE, _pfgnrtd_0:decimal(38,2):decimal]] | ||
Layout: [orderdate:date, _pfgnrtd:decimal(38,2)] | ||
% | ||
" | ||
|
||
"Trino version: % | ||
% | ||
└─ TableScan[table = gt_mysql:gt_db1.%->Query[SELECT % INNER JOIN %] limit=10 columns=%]] | ||
% | ||
" | ||
|
||
DROP TABLE | ||
|
||
DROP TABLE | ||
|
||
DROP SCHEMA |
51 changes: 0 additions & 51 deletions
51
...est/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/bugs/00004_query_pushdown.txt
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
51 changes: 51 additions & 0 deletions
51
...est/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/00004_query_pushdown.txt
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,51 @@ | ||
CREATE SCHEMA | ||
|
||
USE | ||
|
||
CREATE TABLE | ||
|
||
CREATE TABLE | ||
|
||
INSERT: 1500 rows | ||
|
||
INSERT: 15000 rows | ||
|
||
"Trino version: % | ||
% | ||
└─ TableScan[table = gt_postgresql:gt_db1.customer->gt_db1.customer gt_db1.customer limit=10 columns=[custkey:bigint:int8]] | ||
Layout: [custkey:bigint] | ||
% | ||
" | ||
|
||
"Trino version: % | ||
% | ||
└─ TableScan[table = gt_postgresql:gt_db1.customer->gt_db1.customer gt_db1.customer constraints=[ParameterizedExpression[expression=(""phone"") LIKE (?), parameters=[QueryParameter{jdbcType=Optional.empty, type=varchar(6), value=Optional[Slice{base=[B@%, baseOffset=0, length=6}]}]]] limit=10] | ||
Layout: [custkey:bigint, name:varchar(25), address:varchar(40), nationkey:bigint, phone:varchar(15), acctbal:decimal(12,2), mktsegment:varchar(10), comment:varchar(117)] | ||
% | ||
" | ||
|
||
"Trino version: % | ||
% | ||
└─ TableScan[table = gt_postgresql:gt_db1.orders->Query[SELECT sum(""totalprice"") AS ""_pfgnrtd_0"" FROM ""gt_db1"".""orders""] columns=[_pfgnrtd_0:decimal(38,2):decimal]] | ||
Layout: [_pfgnrtd:decimal(38,2)] | ||
% | ||
" | ||
|
||
"Trino version: % | ||
% | ||
└─ TableScan[table = gt_postgresql:gt_db1.%->Query[SELECT ""orderdate"", sum(""totalprice"") AS ""_pfgnrtd_0"" FROM ""gt_db1"".""orders"" GROUP BY ""orderdate""] sortOrder=[orderdate:date:date ASC NULLS LAST] limit=10 columns=[orderdate:date:date, _pfgnrtd_0:decimal(38,2):decimal]] | ||
Layout: [orderdate:date, _pfgnrtd:decimal(38,2)] | ||
% | ||
" | ||
|
||
"Trino version: % | ||
% | ||
TableScan[table = gt_postgresql:gt_db1.orders->Query[SELECT % INNER JOIN %] limit=10 columns=%] | ||
% | ||
" | ||
|
||
DROP TABLE | ||
|
||
DROP TABLE | ||
|
||
DROP SCHEMA |
51 changes: 0 additions & 51 deletions
51
...rc/test/resources/trino-ci-testset/testsets/jdbc-postgresql/bugs/00004_query_pushdown.txt
This file was deleted.
Oops, something went wrong.
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.