Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: Make BuiltInScalarFunction::alias a method #8349

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Nov 28, 2023

Which issue does this PR close?

Part of #8348

Rationale for this change

I want to have ScalarUDF support aliases, and thus I want to have aliases handled as part of Expr::ScalarFunction rather than a free function. By refactoring BuiltInScalarFunction::alias it will make it easier to handle uniformly.

What changes are included in this PR?

  1. Make BuiltInScalarFunction::alias a function

Are these changes tested?

Covered by existing tests

Are there any user-facing changes?

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Nov 28, 2023
Copy link
Contributor Author

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using whitespace blind diff shows the actual changes to this PR much better in my opinion: https://github.com/apache/arrow-datafusion/pull/8349/files?w=1

@alamb alamb merged commit 167b5b7 into apache:main Nov 29, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants