-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Change name of MAX/MIN udaf to lowercase max/min #11795
Conversation
cdcda3f
to
eb92c73
Compare
@@ -326,7 +326,7 @@ impl Default for Min { | |||
impl Min { | |||
pub fn new() -> Self { | |||
Self { | |||
aliases: vec!["min".to_string()], |
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.
We don't need uppercase alias.
To use uppercase alias the query is something like select "MAX"(a) from t;
, which is uncommon.
@@ -413,7 +413,7 @@ impl Default for Max { | |||
impl Max { | |||
pub fn new() -> Self { | |||
Self { | |||
aliases: vec!["max".to_string()], | |||
aliases: vec!["MAX".to_string()], |
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.
ditto
@@ -92,7 +92,7 @@ pub struct Max { | |||
impl Max { | |||
pub fn new() -> Self { | |||
Self { | |||
aliases: vec!["max".to_owned()], | |||
aliases: vec!["MAX".to_owned()], |
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.
ditto
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.
Thanks @edmondop
Which issue does this PR close?
Addresses #11779 . Remove also dead code in moving_min_max