-
Notifications
You must be signed in to change notification settings - Fork 977
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…4333) * subqueryAlias replace alias-projection * remove alias in projection. * correct plan in test * correct tpch plan * correct plan in UT. * fix conflict and add doc for `with_alias`
- Loading branch information
Showing
32 changed files
with
607 additions
and
591 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
Sort: custdist DESC NULLS FIRST, c_orders.c_count DESC NULLS FIRST | ||
Projection: c_orders.c_count, COUNT(UInt8(1)) AS custdist | ||
Aggregate: groupBy=[[c_orders.c_count]], aggr=[[COUNT(UInt8(1))]] | ||
Projection: c_orders.COUNT(orders.o_orderkey) AS c_count, alias=c_orders | ||
Projection: COUNT(orders.o_orderkey), alias=c_orders | ||
Projection: COUNT(orders.o_orderkey) | ||
Aggregate: groupBy=[[customer.c_custkey]], aggr=[[COUNT(orders.o_orderkey)]] | ||
Left Join: customer.c_custkey = orders.o_custkey | ||
TableScan: customer projection=[c_custkey] | ||
Filter: orders.o_comment NOT LIKE Utf8("%special%requests%") | ||
TableScan: orders projection=[o_orderkey, o_custkey, o_comment] | ||
SubqueryAlias: c_orders | ||
Projection: c_orders.COUNT(orders.o_orderkey) AS c_count | ||
SubqueryAlias: c_orders | ||
Projection: COUNT(orders.o_orderkey) | ||
Aggregate: groupBy=[[customer.c_custkey]], aggr=[[COUNT(orders.o_orderkey)]] | ||
Left Join: customer.c_custkey = orders.o_custkey | ||
TableScan: customer projection=[c_custkey] | ||
Filter: orders.o_comment NOT LIKE Utf8("%special%requests%") | ||
TableScan: orders projection=[o_orderkey, o_custkey, o_comment] |
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
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,16 @@ | ||
Sort: custsale.cntrycode ASC NULLS LAST | ||
Projection: custsale.cntrycode, COUNT(UInt8(1)) AS numcust, SUM(custsale.c_acctbal) AS totacctbal | ||
Aggregate: groupBy=[[custsale.cntrycode]], aggr=[[COUNT(UInt8(1)), SUM(custsale.c_acctbal)]] | ||
Projection: cntrycode, customer.c_acctbal, alias=custsale | ||
SubqueryAlias: custsale | ||
Projection: substr(customer.c_phone, Int64(1), Int64(2)) AS cntrycode, customer.c_acctbal | ||
Filter: CAST(customer.c_acctbal AS Decimal128(19, 6)) > __sq_1.__value | ||
CrossJoin: | ||
LeftAnti Join: customer.c_custkey = orders.o_custkey | ||
Filter: substr(customer.c_phone, Int64(1), Int64(2)) IN ([Utf8("13"), Utf8("31"), Utf8("23"), Utf8("29"), Utf8("30"), Utf8("18"), Utf8("17")]) | ||
TableScan: customer projection=[c_custkey, c_phone, c_acctbal] | ||
TableScan: orders projection=[o_custkey] | ||
Projection: AVG(customer.c_acctbal) AS __value, alias=__sq_1 | ||
Aggregate: groupBy=[[]], aggr=[[AVG(customer.c_acctbal)]] | ||
Filter: customer.c_acctbal > Decimal128(Some(0),15,2) AND substr(customer.c_phone, Int64(1), Int64(2)) IN ([Utf8("13"), Utf8("31"), Utf8("23"), Utf8("29"), Utf8("30"), Utf8("18"), Utf8("17")]) | ||
TableScan: customer projection=[c_phone, c_acctbal] | ||
SubqueryAlias: __sq_1 | ||
Projection: AVG(customer.c_acctbal) AS __value | ||
Aggregate: groupBy=[[]], aggr=[[AVG(customer.c_acctbal)]] | ||
Filter: customer.c_acctbal > Decimal128(Some(0),15,2) AND substr(customer.c_phone, Int64(1), Int64(2)) IN ([Utf8("13"), Utf8("31"), Utf8("23"), Utf8("29"), Utf8("30"), Utf8("18"), Utf8("17")]) | ||
TableScan: customer projection=[c_phone, c_acctbal] |
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.