u70b3 commented on issue #16134:
URL: https://github.com/apache/datafusion/issues/16134#issuecomment-5019659970
Verified on current main (1e589287c): this no longer reproduces. The repro
query now fails with a proper execution error instead of silently producing a
cross product:
```
SELECT s.*, (SELECT * FROM (VALUES (1), (2)) t(x)) sub FROM (VALUES ('a'),
('b')) s(a);
-- Execution error: Scalar subquery returned more than one row
```
The check is enforced by `ScalarSubqueryExec` since #22530. Suggest closing.
--
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]