Weijun-H opened a new issue, #12248: URL: https://github.com/apache/datafusion/issues/12248
### Is your feature request related to a problem or challenge? The most frequent value. ### Describe the solution you'd like ``` > SELECT mode(col) FROM VALUES (NULL), (1), (NULL), (2), (NULL), (3), (3) AS tab(col); 3 > SELECT mode(col) FROM VALUES (array(1, 2)), (array(1, 2)), (array(2, 3)) AS tab(col); [1, 2] -- The function returns either 1 or 2, but not 3 > SELECT mode(col) FROM VALUES (1), (1), (2), (2), (3) AS tab(col); 1 > SELECT mode(col) FROM VALUES (NULL), (NULL) AS tab(col); NULL ``` ### Describe alternatives you've considered _No response_ ### Additional context https://duckdb.org/docs/sql/functions/aggregates#modex https://docs.databricks.com/en/sql/language-manual/functions/mode.html -- 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.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