mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Merge pull request #62250 from ClickHouse/bad-boy-const
Correctly handle const columns in DistinctTransfom
This commit is contained in:
commit
03feab3d20
@ -55,6 +55,7 @@ void DistinctTransform::transform(Chunk & chunk)
|
||||
|
||||
/// Convert to full column, because SetVariant for sparse column is not implemented.
|
||||
convertToFullIfSparse(chunk);
|
||||
convertToFullIfConst(chunk);
|
||||
|
||||
const auto num_rows = chunk.getNumRows();
|
||||
auto columns = chunk.detachColumns();
|
||||
|
@ -0,0 +1 @@
|
||||
0 0
|
@ -0,0 +1 @@
|
||||
SELECT DISTINCT COALESCE(COALESCE('') = toNullable('b3'), toUInt128(toNullable(2)), 2, 2, toLowCardinality(2), 2, 2, 2, toUInt128(toNullable(2)), materialize(2), toUInt128(2), 2, 2), COALESCE(COALESCE(COALESCE(materialize(''))) = 'b3', 2, 2, 2, toLowCardinality(2), toUInt128(2), 2, 2, 2, materialize(toUInt256(2)), 2, 2, 2) FROM numbers(100000);
|
Loading…
Reference in New Issue
Block a user