devampatel03 opened a new pull request, #17788: URL: https://github.com/apache/datafusion/pull/17788
## Which issue does this PR close? - Part of #17469 This is a follow-up to the discussion in #17469. ## Rationale for this change In my previous PR (#17690), we fixed the output column naming for scalar and aggregate function aliases. This PR extends that same logic to `window functions` for consistency. This ensures that when a user calls a window function by an alias, the output column name correctly reflects the alias they used in the query. ## What changes are included in this PR? The SQL planner logic for `window functions` in `function.rs` is updated to detect when an alias is used. It then constructs a verbose name (e.g., `my_alias(arg)`) and uses that for the output column, making it consistent with scalar and aggregate functions. ## Are these changes tested? Yes. ## Are there any user-facing changes? Yes. -- 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]
