jackylee-ch opened a new pull request, #25697: URL: https://github.com/apache/datafusion/pull/25697
## Which issue does this PR close? - N/A ## Rationale for this change `empty`'s docs say it "Returns 1 for an empty array or 0 for a non-empty array" and show `select empty([1])` returning `0`. But `empty` returns a boolean (`return_type` is `Boolean`); `array/array_empty.slt` shows `empty(make_array(1))` is `false`. Following the docs (`empty(...) = 1`) fails to plan with `Cannot infer common argument type Boolean = Int64`. ## What changes are included in this PR? Corrects the description and `sql_example` to return `false`, and regenerates `scalar_functions.md`. ## What is the testing strategy for this PR? Docs only; behaviour is unchanged and already covered by `array/array_empty.slt` (`empty(make_array(1))` → `false`). ## Are there any user-facing changes? The SQL reference for `empty` (and aliases `array_empty`/`list_empty`) is now correct. No API change. -- 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]
