mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
fix bug
This commit is contained in:
parent
761c612295
commit
a29d4f5db2
@ -36,11 +36,10 @@ public:
|
||||
return ;
|
||||
if (constant_node->getValue().getType() == Field::Types::Which::Tuple)
|
||||
return;
|
||||
auto const_value = std::make_shared<ConstantNode>(constant_node->getValue());
|
||||
|
||||
auto equal_resolver = createInternalFunctionEqualOverloadResolver();
|
||||
auto equal = std::make_shared<FunctionNode>("equals");
|
||||
QueryTreeNodes arguments{column_node->clone(), const_value};
|
||||
QueryTreeNodes arguments{column_node->clone(), constant_node->clone()};
|
||||
equal->getArguments().getNodes() = std::move(arguments);
|
||||
equal->resolveAsFunction(equal_resolver);
|
||||
node = equal;
|
||||
|
@ -96,6 +96,7 @@ static std::map<ClickHouseVersion, SettingsChangesHistory::SettingsChanges> sett
|
||||
{"parallel_replicas_allow_in_with_subquery", false, true, "If true, subquery for IN will be executed on every follower replica"},
|
||||
{"filesystem_cache_reserve_space_wait_lock_timeout_milliseconds", 1000, 1000, "Wait time to lock cache for sapce reservation in filesystem cache"},
|
||||
{"max_parser_backtracks", 0, 1000000, "Limiting the complexity of parsing"},
|
||||
{"optimize_in_to_equal", false, true, "Convert in single value to equal"},
|
||||
}},
|
||||
{"24.2", {{"allow_suspicious_variant_types", true, false, "Don't allow creating Variant type with suspicious variants by default"},
|
||||
{"validate_experimental_and_suspicious_types_inside_nested_types", false, true, "Validate usage of experimental and suspicious types inside nested types"},
|
||||
|
@ -21,9 +21,7 @@
|
||||
ENGINE = Memory
|
||||
</create_query>
|
||||
<fill_query>insert into t_nullable select ['aaaaaa','bbaaaa','ccaaaa','ddaaaa'][number % 101 + 1], ['aa','bb','cc','dd'][number % 100 + 1], ['aa','bb','cc','dd'][number % 102 + 1], number%10+1, number%10+2, number%10+3, number%10+4,number%10+5, number%6000+1, number%5000+2 from numbers_mt(30000000)</fill_query>
|
||||
<query>select * from t_nullable where key_string1 in ('aaaaaa') format Null</query>
|
||||
<query>select * from t_nullable where key_string1 in ('aaaaaa') format Null SETTINGS allow_experimental_analyzer=1</query>
|
||||
<query>select * from t_nullable where key_string2 in ('3') format Null</query>
|
||||
<query>select * from t_nullable where key_string2 in ('3') format Null SETTINGS allow_experimental_analyzer=1</query>
|
||||
<drop_query>drop table if exists t_nullable</drop_query>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user