chenkovsky commented on issue #16515:
URL: https://github.com/apache/datafusion/issues/16515#issuecomment-3004464455

   > FWIW an alternative syntax works
   > 
   > ```
   > statement ok
   > set datafusion.sql_parser.dialect = 'Generic';
   > 
   > query ?
   > SELECT array_agg(a_varchar order by a_varchar)
   > FROM (VALUES ('a'), ('d'), ('c'), ('a')) t(a_varchar);
   > ----
   > [a, a, c, d]
   > 
   > query ?
   > SELECT array_agg(DISTINCT a_varchar order by a_varchar)
   > FROM (VALUES ('a'), ('d'), ('c'), ('a')) t(a_varchar);
   > ----
   > [a, c, d]
   > ```
   
   this syntax is also valid in postgres.


-- 
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-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to