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

Constraints complex types support #20990

Merged

Conversation

kitaisreal
Copy link
Collaborator

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

Fixes #20880.
Fixes #19334.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

@robot-clickhouse robot-clickhouse added pr-not-for-changelog This PR should not be mentioned in the changelog labels Feb 19, 2021
@alexey-milovidov alexey-milovidov self-assigned this Feb 20, 2021
{
UInt8 value = res_const->getValue<UInt64>();
if (const auto * column_nullable = checkAndGetColumn<ColumnNullable>(*result_column))
result_column = column_nullable->getNestedColumnPtr();
Copy link
Member

Choose a reason for hiding this comment

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

There is an issue: if the value of Nullable column is NULL, the value of the nested column is undetermined and we cannot rely on it. Example: SELECT number % 2 AS n, nullIf(n, 1) AS nullable, assumeNotNull(nullable) AS unwrapped FROM numbers(10)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@kitaisreal kitaisreal force-pushed the constraints-complex-type-support branch from f62092f to 23af530 Compare February 25, 2021 11:27
@kitaisreal kitaisreal merged commit 9996f68 into ClickHouse:master Feb 27, 2021
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
3 participants