mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
clickhouse: fixed sampling [#CONV-7363].
This commit is contained in:
parent
8685024166
commit
5c386bb038
@ -180,7 +180,7 @@ BlockInputStreams StorageMergeTree::read(
|
||||
}
|
||||
|
||||
UInt64 sampling_column_max = 0;
|
||||
DataTypePtr type = Expression(sampling_expression, context).getReturnTypes()[0];
|
||||
DataTypePtr type = Expression(sampling_expression, context, *columns).getReturnTypes()[0];
|
||||
|
||||
if (type->getName() == "UInt64")
|
||||
sampling_column_max = std::numeric_limits<UInt64>::max();
|
||||
|
Loading…
Reference in New Issue
Block a user