Skip to content

[CALCITE-5408] Return type of PERCENTILE_CONT should be the same as sort expression #3010

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

Closed
wants to merge 2 commits into from

Conversation

zoudan
Copy link
Contributor

@zoudan zoudan commented Dec 21, 2022

Return type of PERCENTILE_CONT should be the same as sort expression

Copy link
Member

@libenchao libenchao left a comment

Choose a reason for hiding this comment

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

@zoudan Thanks for your PR, I only left one minor comment.

@@ -2195,7 +2195,7 @@ public class SqlStdOperatorTable extends ReflectiveSqlOperatorTable {
*/
public static final SqlAggFunction PERCENTILE_CONT =
SqlBasicAggFunction
.create(SqlKind.PERCENTILE_CONT, ReturnTypes.DOUBLE,
Copy link
Member

Choose a reason for hiding this comment

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

the comment should also be changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@libenchao Thanks for reviewing, I have resolved it just now.

Copy link
Member

@libenchao libenchao left a comment

Choose a reason for hiding this comment

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

LGTM, will merge after the CI passes. Thanks for your contribution @zoudan

@libenchao libenchao closed this in 273d33d Dec 22, 2022
julianhyde pushed a commit to julianhyde/calcite that referenced this pull request Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants