v28k commented on code in PR #27329: URL: https://github.com/apache/datafusion/pull/27329#discussion_r4785347137
########## datafusion/sqllogictest/test_files/subquery.slt: ########## @@ -2675,6 +2675,18 @@ SELECT (SELECT count(*) FROM sq_empty), (SELECT v FROM sq_values); ## Uncorrelated scalar subqueries in various expression contexts ############# +# VALUES rows with uncorrelated scalar subqueries +query II +VALUES ((SELECT min(v) FROM sq_values), 5); +---- +1 5 + +query II rowsort +SELECT * FROM (VALUES ((SELECT max(v) FROM sq_values), 5), (7, (SELECT min(v) FROM sq_values))) AS t(a, b); +---- +3 5 +7 1 Review Comment: Added the `INSERT INTO ... VALUES ((SELECT 3) + 2)` + readback test on a `SMALLINT` target in `subquery.slt`. -- 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]
