yjhjstz opened a new issue, #1309:
URL: https://github.com/apache/cloudberry/issues/1309
### Apache Cloudberry version
main
### What happened
orca result error
### What you think should happen instead
_No response_
### How to reproduce
CREATE TABLE count_empty (a int, b int);
CREATE TABLE count_one (a int, b int);
INSERT INTO count_one VALUES (0, 0);
-- optimizer=off:
SET optimizer=off;
SELECT *
FROM count_one
WHERE count_one.a IN (
SELECT COUNT(*)
FROM count_empty
WHERE count_one.b = count_empty.b
);
a | b
---+---
0 | 0
(1 row)
-- optimizer=on:
SET optimizer=on;
SELECT *
FROM count_one
WHERE count_one.a IN (
SELECT COUNT(*)
FROM count_empty
WHERE count_one.b = count_empty.b
);
a | b
---+---
(0 rows)
### Operating System
centos 9
### Anything else
_No response_
### Are you willing to submit PR?
- [x] Yes, I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/cloudberry/blob/main/CODE_OF_CONDUCT.md).
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]