Conversation
|
Awesome job! |
|
To-do , use generic ASTLiteral instead of ASTFunction |
e4e105e to
5f7b2c8
Compare
|
perf test shows promising results |
|
Great job! Tested with product data, found no problem. |
|
I've updated PR description. We use template strings in scripts. PR should have "Category" and "Short description" lines present and unchanged. |
cae68dc to
29f9223
Compare
|
|
Can be triggered using the following query:
CREATE TABLE foo (key String, macro String MATERIALIZED __getScalar(key)) Engine=Null();
Trace:
3. 0x00007ffff6d5d526 __assert_fail (libc.so.6)
4. 0x00007ffff41fd931 boost::intrusive_ptr<DB::IColumn const>::operator*() const (libclickhouse_functionsd.so)
5. 0x00007ffff41fcd64 COW<DB::IColumn>::IntrusivePtr<DB::IColumn const>::operator*() const & (libclickhouse_functionsd.so)
6. 0x00007ffff4dc5944 DB::FunctionGetScalar::getReturnTypeImpl() const (libclickhouse_functionsd.so)
(Even though it is internal I guess it is better to fix it)
Refs: ClickHouse#7392
Cc: @amosbird
|
If I set |
@amosbird you made upgrade of a cluster is impossible. |
|
@SaltTan but @den-crane Hmm, did you try upgrading with that setting = |
|
@amosbird You have to change default value to |
|
Ok, I'm not familiar with cluster upgrading, especially seemingless ones. If defaulting the setting to false is a proper fix, I'm fine with that. As I said, "enable_scalar_subquery_optimization is set to true by default in order to get the perf test result." |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Category (leave one):
Short description (up to few sentences):
Using column instead of AST to store scalar query results.
@yuzhichang @yingfeng