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

Variant type: "Invalid Field get from type Null to type Array" #63641

Open
al13n321 opened this issue May 10, 2024 · 0 comments
Open

Variant type: "Invalid Field get from type Null to type Array" #63641

al13n321 opened this issue May 10, 2024 · 0 comments
Labels
experimental feature Bug in the feature that should not be used in production fuzz Problem found by one of the fuzzers

Comments

@al13n321
Copy link
Member

Fuzzer found this:

% build/programs/clickhouse local -q "SELECT toTypeName(res), if(0, range(plus(number)), CAST(concat(toNullable('str_')), 'Nullable(String)')) AS res FROM numbers(['str_', toNullable(toUInt256(4)), 'd', 1, 1, CAST(toNullable('str_1'), 'Nullable(String)'), NULL, 1, 'str_2', 5, 5], 2, 4) settings allow_experimental_variant_type=1, use_variant_as_common_type=1" 
2024.05.10 22:30:12.341011 [ 2357138 ] {8adb6f44-cfc4-4abe-909c-8c2f2edd8bc6} <Fatal> : Logical error: 'Invalid Field get from type Null to type Array'.
zsh: IOT instruction (core dumped)  build/programs/clickhouse local -q

Simplified query that still crashes:

SELECT 1 FROM numbers([toNullable(4), '', NULL]) settings allow_experimental_variant_type=1, use_variant_as_common_type=1
@al13n321 al13n321 added bug Confirmed user-visible misbehaviour in official release fuzz Problem found by one of the fuzzers labels May 10, 2024
@alexey-milovidov alexey-milovidov added experimental feature Bug in the feature that should not be used in production and removed bug Confirmed user-visible misbehaviour in official release labels May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental feature Bug in the feature that should not be used in production fuzz Problem found by one of the fuzzers
Projects
None yet
Development

No branches or pull requests

2 participants