You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "nseekhao (via GitHub)" <gi...@apache.org> on 2023/04/19 13:58:34 UTC
[GitHub] [arrow-datafusion] nseekhao opened a new issue, #6058: Substrait: duplicate qualified fields error in INTERSECT when reusing the same tables and columns
nseekhao opened a new issue, #6058:
URL: https://github.com/apache/arrow-datafusion/issues/6058
### Describe the bug
The producer failed if the input query `INTERSECT`s `SELECT`s of the same tables and columns multiple time.
### To Reproduce
```Rust
#[tokio::test]
async fn simple_intersect_table_reuse() -> Result<()> {
assert_expected_plan(
"SELECT COUNT(*) FROM (SELECT data.a FROM data INTERSECT SELECT data.a FROM data);",
"Aggregate: groupBy=[[]], aggr=[[COUNT(UInt8(1))]]\
\n LeftSemi Join: data.a = data.a\
\n Aggregate: groupBy=[[data.a]], aggr=[[]]\
\n TableScan: data projection=[a]\
\n TableScan: data projection=[a]",
)
.await
}
```
### Expected behavior
```bash
---- tests::simple_intersect_table_reuse stdout ----
Error: SchemaError(DuplicateQualifiedField { qualifier: Bare { table: "data" }, name: "a" })
```
### Additional context
_No response_
--
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.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] waynexia closed issue #6058: Substrait: duplicate qualified fields error in INTERSECT when reusing the same tables and columns
Posted by "waynexia (via GitHub)" <gi...@apache.org>.
waynexia closed issue #6058: Substrait: duplicate qualified fields error in INTERSECT when reusing the same tables and columns
URL: https://github.com/apache/arrow-datafusion/issues/6058
--
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.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org