mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Default value for optional in SortNode::updateTreeHashImpl
This commit is contained in:
parent
09ab5832b1
commit
3b483e513f
@ -91,7 +91,8 @@ bool SortNode::isEqualImpl(const IQueryTreeNode & rhs) const
|
||||
void SortNode::updateTreeHashImpl(HashState & hash_state) const
|
||||
{
|
||||
hash_state.update(sort_direction);
|
||||
hash_state.update(nulls_sort_direction);
|
||||
/// use some determined value if `nulls_sort_direction` is `nullopt`
|
||||
hash_state.update(nulls_sort_direction.value_or(sort_direction));
|
||||
hash_state.update(with_fill);
|
||||
|
||||
if (collator)
|
||||
|
@ -0,0 +1 @@
|
||||
1
|
8
tests/queries/0_stateless/02513_analyzer_sort_msan.sql
Normal file
8
tests/queries/0_stateless/02513_analyzer_sort_msan.sql
Normal file
@ -0,0 +1,8 @@
|
||||
DROP TABLE IF EXISTS products;
|
||||
|
||||
SET allow_experimental_analyzer = 1;
|
||||
|
||||
CREATE TABLE products (`price` UInt32) ENGINE = Memory;
|
||||
INSERT INTO products VALUES (1);
|
||||
|
||||
SELECT rank() OVER (ORDER BY price) AS rank FROM products ORDER BY rank;
|
Loading…
Reference in New Issue
Block a user