xanderbailey commented on issue #19735: URL: https://github.com/apache/datafusion/issues/19735#issuecomment-3733626099
``` > CREATE TABLE test_table (x INT); 0 row(s) fetched. Elapsed 0.008 seconds. > INSERT INTO test_table VALUES (1), (2), (NULL), (2), (NULL), (1); +-------+ | count | +-------+ | 6 | +-------+ 1 row(s) fetched. Elapsed 0.010 seconds. > SELECT ARRAY_AGG(DISTINCT x IGNORE NULLS ORDER BY x) as result FROM test_table; +--------+ | result | +--------+ | [1, 2] | +--------+ 1 row(s) fetched. Elapsed 0.009 seconds. > SELECT ARRAY_AGG(DISTINCT x IGNORE NULLS) as result FROM test_table; +--------------+ | result | +--------------+ | [2, NULL, 1] | +--------------+ 1 row(s) fetched. Elapsed 0.008 seconds. ``` So this is working with the `ORDER BY` -- 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]
