You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/04/26 13:29:22 UTC
[GitHub] [arrow-datafusion] alamb opened a new issue #171: TPC-H Query 20
alamb opened a new issue #171:
URL: https://github.com/apache/arrow-datafusion/issues/171
*Note*: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-11533
IN (Subquery) in (WHERE) expression
Error: NotImplemented("Unsupported ast node InSubquery { expr: Identifier(Ident { value: \"s_suppkey\", quote_style: None }), subquery: Query { with: None, body: Select(Select { distinct: false, top: None, projection: [UnnamedExpr(Identifier(Ident { value: \"ps_suppkey\", quote_style: None }))], from: [TableWithJoins { relation: Table { name: ObjectName([Ident { value: \"partsupp\", quote_style: None }]), alias: None, args: [], with_hints: [] }, joins: [] }], selection: Some(BinaryOp { left: InSubquery { expr: Identifier(Ident { value: \"ps_partkey\", quote_style: None }), subquery: Query { with: None, body: Select(Select { distinct: false, top: None, projection: [UnnamedExpr(Identifier(Ident { value: \"p_partkey\", quote_style: None }))], from: [TableWithJoins { relation: Table { name: ObjectName([Ident { value: \"part\", quote_style: None }]), alias: None, args: [], with_hints: [] }, joins: [] }], selection: Some(BinaryOp { left: Identifier(Ident { value: \"p_name\", quote_style
: None }), op: Like, right: Value(SingleQuotedString(\"forest%\")) }), group_by: [], having: None }), order_by: [], limit: None, offset: None, fetch: None }, negated: false }, op: And, right: BinaryOp { left: Identifier(Ident { value: \"ps_availqty\", quote_style: None }), op: Gt, right: Subquery(Query { with: None, body: Select(Select { distinct: false, top: None, projection: [UnnamedExpr(BinaryOp { left: Value(Number(\"0.5\")), op: Multiply, right: Function(Function { name: ObjectName([Ident { value: \"sum\", quote_style: None }]), args: [Unnamed(Identifier(Ident { value: \"l_quantity\", quote_style: None }))], over: None, distinct: false }) })], from: [TableWithJoins { relation: Table { name: ObjectName([Ident { value: \"lineitem\", quote_style: None }]), alias: None, args: [], with_hints: [] }, joins: [] }], selection: Some(BinaryOp { left: BinaryOp { left: BinaryOp { left: BinaryOp { left: Identifier(Ident { value: \"l_partkey\", quote_style: None }), op: Eq, right: Identifier(
Ident { value: \"ps_partkey\", quote_style: None }) }, op: And, right: BinaryOp { left: Identifier(Ident { value: \"l_suppkey\", quote_style: None }), op: Eq, right: Identifier(Ident { value: \"ps_suppkey\", quote_style: None }) } }, op: And, right: BinaryOp { left: Identifier(Ident { value: \"l_shipdate\", quote_style: None }), op: GtEq, right: TypedString { data_type: Date, value: \"1994-01-01\" } } }, op: And, right: BinaryOp { left: Identifier(Ident { value: \"l_shipdate\", quote_style: None }), op: Lt, right: BinaryOp { left: Value(SingleQuotedString(\"date 1994-01-01\")), op: Plus, right: Value(Interval { value: \"1\", leading_field: Some(Year), leading_precision: None, last_field: None, fractional_seconds_precision: None }) } } }), group_by: [], having: None }), order_by: [], limit: None, offset: None, fetch: None }) } }), group_by: [], having: None }), order_by: [], limit: None, offset: None, fetch: None }, negated: false } in sqltorel")
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org