-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Implement Aliases for ScalarUDF #8360
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Signed-off-by: veeupup <code@tanweime.com>
@alamb PTAL : ) I'm considering that whether we need to provide a helper function |
@@ -341,6 +341,43 @@ async fn case_sensitive_identifiers_user_defined_functions() -> Result<()> { | |||
Ok(()) | |||
} | |||
|
|||
#[tokio::test] | |||
async fn test_user_defined_functions_with_alias() -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe useful to test again the case where you create a udf1 with an alias and then a different udf with the same alias? I don't know what's the expected behavior there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the behavior will be like HashMap::insert
, the old value of the same alias will be updated with the new udf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: veeupup <code@tanweime.com>
71ca93a
to
f495f77
Compare
Which issue does this PR close?
Closes #8348
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?