Skip to content

fix Aggregation Function not found error after #16123#16774

Merged
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
ucasfl:agg-func-setting-null-for-empty
Nov 12, 2020
Merged

fix Aggregation Function not found error after #16123#16774
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
ucasfl:agg-func-setting-null-for-empty

Conversation

@ucasfl
Copy link
Copy Markdown
Collaborator

@ucasfl ucasfl commented Nov 7, 2020

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Continue of #16123

Detailed description / Documentation draft:

...

By adding documentation, you'll allow users to try your new feature immediately, not when someone else will have time to document it later. Documentation is necessary for all features that affect user experience in any way. You can add brief documentation draft above, or add documentation right into your patch as Markdown files in docs folder.

If you are doing this for the first time, it's recommended to read the lightweight Contributing to ClickHouse Documentation guide first.

Information about CI checks: https://clickhouse.tech/docs/en/development/continuous-integration/

@robot-clickhouse robot-clickhouse added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 7, 2020
auto properties = instance.tryGetProperties(func.name);
if (properties && !properties->returns_default_when_only_null)
func.name = func.name + customized_func_suffix;
func.name = Poco::toLower(func.name) + customized_func_suffix;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is strange, because we have non-lowercase names, e.g. sumWithOverflow.

Copy link
Copy Markdown
Member

@alexey-milovidov alexey-milovidov left a comment

Choose a reason for hiding this comment

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

.

@alexey-milovidov alexey-milovidov self-assigned this Nov 7, 2020
@ucasfl
Copy link
Copy Markdown
Collaborator Author

ucasfl commented Nov 8, 2020

The problem MAXOrNull doesn't work is because that combinators doesn't apply for case insensitive names currently, only for native names, can we cancel this constraint or we shoule keep it? @alexey-milovidov

@alexey-milovidov
Copy link
Copy Markdown
Member

@ucasfl Yes, let's cancel this constraint.

@alexey-milovidov alexey-milovidov merged commit 6e62108 into ClickHouse:master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants