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 2 #159

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

TPC-H Query 2 #159

alamb opened this issue Apr 26, 2021 · 2 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-11520

{{Missing subquery support.}}

{{Full error:}}

{{Error: NotImplemented("Unsupported ast node Subquery(Query { with: None, body: Select(Select { distinct: false, top: None, projection: [UnnamedExpr(Function(Function { name: ObjectName([Ident { value: "min", quote_style: None }]), args: [Unnamed(Identifier(Ident { value: "ps_supplycost", quote_style: None }))], over: None, distinct: false }))], from: [TableWithJoins { relation: Table { name: ObjectName([Ident { value: "partsupp", quote_style: None }]), alias: None, args: [], with_hints: [] }, joins: [] }, TableWithJoins { relation: Table { name: ObjectName([Ident { value: "supplier", quote_style: None }]), alias: None, args: [], with_hints: [] }, joins: [] }, TableWithJoins { relation: Table { name: ObjectName([Ident { value: "nation", quote_style: None }]), alias: None, args: [], with_hints: [] }, joins: [] }, TableWithJoins { relation: Table { name: ObjectName([Ident { value: "region", quote_style: None }]), alias: None, args: [], with_hints: [] }, joins: [] }], selection: Some(BinaryOp { left: BinaryOp { left: BinaryOp { left: BinaryOp { left: BinaryOp { left: Identifier(Ident { value: "p_partkey", quote_style: None }), op: Eq, right: Identifier(Ident { value: "ps_partkey", quote_style: None }) }, op: And, right: BinaryOp { left: Identifier(Ident { value: "s_suppkey", quote_style: None }), op: Eq, right: Identifier(Ident { value: "ps_suppkey", quote_style: None }) } }, op: And, right: BinaryOp { left: Identifier(Ident { value: "s_nationkey", quote_style: None }), op: Eq, right: Identifier(Ident { value: "n_nationkey", quote_style: None }) } }, op: And, right: BinaryOp { left: Identifier(Ident { value: "n_regionkey", quote_style: None }), op: Eq, right: Identifier(Ident { value: "r_regionkey", quote_style: None }) } }, op: And, right: BinaryOp { left: Identifier(Ident { value: "r_name", quote_style: None }), op: Eq, right: Value(SingleQuotedString("EUROPE")) } }), group_by: [], having: None }), order_by: [], limit: None, offset: None, fetch: None }) in sqltorel")}}

@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

andygrove commented May 10, 2022

Latest failure:

Error: NotImplemented("Physical plan does not support logical expression (Subquery: Projection: #MIN(partsupp.ps_supplycost)
\n  Aggregate: groupBy=[[]], aggr=[[MIN(#partsupp.ps_supplycost)]]
\n    Filter: #part.p_partkey = #partsupp.ps_partkey AND #region.r_name = Utf8(\"EUROPE\")
\n      Inner Join: #nation.n_regionkey = #region.r_regionkey
\n        Inner Join: #supplier.s_nationkey = #nation.n_nationkey
\n          Inner Join: #partsupp.ps_suppkey = #supplier.s_suppkey
\n            TableScan: partsupp projection=None
\n            TableScan: supplier projection=None
\n          TableScan: nation projection=None
\n        TableScan: region projection=None)")

@avantgardnerio
Copy link
Contributor

Resolved in this branch which I am getting ready for PR.

| -927.13   | Supplier#000003514 | UNITED KINGDOM | 150998    | Manufacturer#5 | 63uWeHPVfzygvwEivG                       | 33-482-787-8079 | y unusual asymptotes boost carefully. regular deposits above                                         |
| -963.79   | Supplier#000000065 | RUSSIA         | 20064     | Manufacturer#2 | BsAnHUmSFArppKrM                         | 32-444-835-2434 | l ideas wake carefully around the regular packages. furiously ruthless pinto bea                     |
| -970.28   | Supplier#000004677 | UNITED KINGDOM | 117143    | Manufacturer#1 | s,bn 4mYd5RWFDkY88z4VdzJ                 | 33-455-575-6387 |  foxes. furiously even requests haggle furiously excuses. slyly final dependencies haggle blithe     |
| -986.14   | Supplier#000003627 | FRANCE         | 103626    | Manufacturer#2 | 77,1uiRw rXybJh                          | 16-568-745-4062 | closely blithely regular dolphins. fluffi                                                            |
+-----------+--------------------+----------------+-----------+----------------+------------------------------------------+-----------------+------------------------------------------------------------------------------------------------------+
Query 2 iteration 2 took 7080.4 ms and returned 460 rows
Query 2 avg time: 7061.90 ms

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