You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jiangzhx (via GitHub)" <gi...@apache.org> on 2023/05/08 07:29:47 UTC
[GitHub] [arrow-datafusion] jiangzhx opened a new issue, #6279: sql query “0 rows in set”,cannot be determined by using 'IS NULL'
jiangzhx opened a new issue, #6279:
URL: https://github.com/apache/arrow-datafusion/issues/6279
### Describe the bug
- `select count(1) from t1 where (select t1.c1 from t1 where c2<0) IS NULL`
- `select count(1) from t1 where (select t1.c1 from t1 where c2>0) IS NULL`
response some result.
### To Reproduce
```
CREATE EXTERNAL TABLE t1 (
c1 VARCHAR NOT NULL,
c2 INT NOT NULL,
c3 SMALLINT NOT NULL,
c4 SMALLINT NOT NULL,
c5 INT NOT NULL,
c6 BIGINT NOT NULL,
c7 SMALLINT NOT NULL,
c8 INT NOT NULL,
c9 BIGINT NOT NULL,
c10 VARCHAR NOT NULL,
c11 FLOAT NOT NULL,
c12 DOUBLE NOT NULL,
c13 VARCHAR NOT NULL
)
STORED AS CSV
WITH HEADER ROW
LOCATION 'testing/data/csv/aggregate_test_100.csv';
```
- `select count(1) from t1 where (select t1.c1 from t1 where c2<0) IS NOT NULL`
- `select count(1) from t1 where (select t1.c1 from t1 where c2>0) IS NOT NULL`
response some result
### Expected behavior
_No response_
### Additional context
datafusion 23.0.0
--
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] alamb commented on issue #6279: cannot be determined query result by using 'IS NULL'
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #6279:
URL: https://github.com/apache/arrow-datafusion/issues/6279#issuecomment-1538892967
What is the expected output? That the query runs and produces results?
--
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
[GitHub] [arrow-datafusion] Weijun-H commented on issue #6279: cannot be determined query result by using 'IS NULL'
Posted by "Weijun-H (via GitHub)" <gi...@apache.org>.
Weijun-H commented on issue #6279:
URL: https://github.com/apache/arrow-datafusion/issues/6279#issuecomment-1540957370
```
DataFusion CLI v24.0.0
❯ CREATE EXTERNAL TABLE t1 (
c1 VARCHAR NOT NULL,
c2 INT NOT NULL,
c3 SMALLINT NOT NULL,
c4 SMALLINT NOT NULL,
c5 INT NOT NULL,
c6 BIGINT NOT NULL,
c7 SMALLINT NOT NULL,
c8 INT NOT NULL,
c9 BIGINT NOT NULL,
c10 VARCHAR NOT NULL,
c11 FLOAT NOT NULL,
c12 DOUBLE NOT NULL,
c13 VARCHAR NOT NULL
)
STORED AS CSV
WITH HEADER ROW
LOCATION 'testing/data/csv/aggregate_test_100.csv';
0 rows in set. Query took 0.002 seconds.
❯ select count(1) from t1 where (select t1.c1 from t1 where c2<0) IS NULL;
This feature is not implemented: Physical plan does not support logical expression (<subquery>)
```
I tried to reproduce this error, but I am not sure what it shou be.
--
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
[GitHub] [arrow-datafusion] jiangzhx commented on issue #6279: cannot be determined query result by using 'IS NULL'
Posted by "jiangzhx (via GitHub)" <gi...@apache.org>.
jiangzhx commented on issue #6279:
URL: https://github.com/apache/arrow-datafusion/issues/6279#issuecomment-1541298832
>
t's a mistake. Just happened on Datafusion 19.0.0
i will close this pr.
--
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
[GitHub] [arrow-datafusion] jiangzhx closed issue #6279: cannot be determined query result by using 'IS NULL'
Posted by "jiangzhx (via GitHub)" <gi...@apache.org>.
jiangzhx closed issue #6279: cannot be determined query result by using 'IS NULL'
URL: https://github.com/apache/arrow-datafusion/issues/6279
--
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
[GitHub] [arrow-datafusion] alamb commented on issue #6279: cannot be determined query result by using 'IS NULL'
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #6279:
URL: https://github.com/apache/arrow-datafusion/issues/6279#issuecomment-1541910517
Thanks @jiangzhx -- I think @mingmwang or @jackwener were thinking about working on this one too
--
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
[GitHub] [arrow-datafusion] jiangzhx commented on issue #6279: cannot be determined query result by using 'IS NULL'
Posted by "jiangzhx (via GitHub)" <gi...@apache.org>.
jiangzhx commented on issue #6279:
URL: https://github.com/apache/arrow-datafusion/issues/6279#issuecomment-1541299287
> ```
> DataFusion CLI v24.0.0
> ❯ CREATE EXTERNAL TABLE t1 (
> c1 VARCHAR NOT NULL,
> c2 INT NOT NULL,
> c3 SMALLINT NOT NULL,
> c4 SMALLINT NOT NULL,
> c5 INT NOT NULL,
> c6 BIGINT NOT NULL,
> c7 SMALLINT NOT NULL,
> c8 INT NOT NULL,
> c9 BIGINT NOT NULL,
> c10 VARCHAR NOT NULL,
> c11 FLOAT NOT NULL,
> c12 DOUBLE NOT NULL,
> c13 VARCHAR NOT NULL
> )
> STORED AS CSV
> WITH HEADER ROW
> LOCATION 'testing/data/csv/aggregate_test_100.csv';
> 0 rows in set. Query took 0.002 seconds.
> ❯ select count(1) from t1 where (select t1.c1 from t1 where c2<0) IS NULL;
> This feature is not implemented: Physical plan does not support logical expression (<subquery>)
> ```
>
> I tried to reproduce this error, but I am not sure what it should be.
about `Physical plan does not support logical expression (<subquery>)`
i will fix at #5907
--
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