mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fix Cube transform.
This commit is contained in:
parent
2377298c0d
commit
36392aab6b
@ -44,7 +44,7 @@ Chunk CubeTransform::generate()
|
||||
auto size = keys.size();
|
||||
for (size_t i = 0; i < size; ++i)
|
||||
/// Reverse bit order to support previous behaviour.
|
||||
if ((mask & (UInt64(1) << (size - i))) == 0)
|
||||
if ((mask & (UInt64(1) << (size - i - 1))) == 0)
|
||||
columns[keys[i]] = current_zero_columns[i];
|
||||
|
||||
BlocksList cube_blocks = { getInputPort().getHeader().cloneWithColumns(columns) };
|
||||
|
Loading…
Reference in New Issue
Block a user