Skip to content
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

TPC-H Query 21 #172

Closed
Tracked by #158
alamb opened this issue Apr 26, 2021 · 3 comments · Fixed by #2885
Closed
Tracked by #158

TPC-H Query 21 #172

alamb opened this issue Apr 26, 2021 · 3 comments · Fixed by #2885
Labels
datafusion Changes in the datafusion crate
Milestone

Comments

@alamb
Copy link
Contributor

alamb commented Apr 26, 2021

Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-11534

Fails with error:

Error: NotImplemented("Unsupported compound identifier '["l1", "l_suppkey"]'")

@alamb alamb added the datafusion Changes in the datafusion crate label Apr 26, 2021
@Dandandan Dandandan added this to the TPC-H milestone Aug 23, 2021
@andygrove
Copy link
Member

Latest failure:

Error: NotImplemented("Physical plan does not support logical expression EXISTS (Subquery: Projection: #l2.l_orderkey, #l2.l_partkey, #l2.l_suppkey, #l2.l_linenumber, #l2.l_quantity, #l2.l_extendedprice, #l2.l_discount, #l2.l_tax, #l2.l_returnflag, #l2.l_linestatus, #l2.l_shipdate, #l2.l_commitdate, #l2.l_receiptdate, #l2.l_shipinstruct, #l2.l_shipmode, #l2.l_comment\n  Filter: #l2.l_orderkey = #l1.l_orderkey AND #l2.l_suppkey != #l1.l_suppkey\n    SubqueryAlias: l2\n      TableScan: lineitem projection=None)")

@alamb
Copy link
Contributor Author

alamb commented May 11, 2022

Possibly fixed in #2451

@avantgardnerio
Copy link
Contributor

This is the final subquery fixed. Dependent on #2843 . Fixed in this branch:

datafusion:

| Supplier#000003834 | 4       |
| Supplier#000005998 | 4       |
| Supplier#000009721 | 4       |
| Supplier#000006684 | 3       |
| Supplier#000007656 | 3       |
| Supplier#000008136 | 3       |
+--------------------+---------+
Query 21 iteration 0 took 161136.2 ms and returned 411 rows
Query 21 avg time: 161136.18 ms

postgres:

|Supplier#000003834|4      |
|Supplier#000005998|4      |
|Supplier#000009721|4      |
|Supplier#000006684|3      |
|Supplier#000007656|3      |
|Supplier#000008136|3      |
+------------------+-------+

PR for all the subquery fixes inbound shortly 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate
Projects
None yet
4 participants