mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
Fix
This commit is contained in:
parent
031f030102
commit
70f45c11bd
@ -396,7 +396,10 @@ ASTPtr createPathAndFileFilterAst(const ASTPtr & query, const NamesAndTypesList
|
|||||||
|
|
||||||
Block block;
|
Block block;
|
||||||
for (const auto & column : virtual_columns)
|
for (const auto & column : virtual_columns)
|
||||||
|
{
|
||||||
|
if (column.name == "_file" || column.name == "_path")
|
||||||
block.insert({column.type->createColumn(), column.type, column.name});
|
block.insert({column.type->createColumn(), column.type, column.name});
|
||||||
|
}
|
||||||
/// Create a block with one row to construct filter
|
/// Create a block with one row to construct filter
|
||||||
/// Append "idx" column as the filter result
|
/// Append "idx" column as the filter result
|
||||||
block.insert({ColumnUInt64::create(), std::make_shared<DataTypeUInt64>(), "_idx"});
|
block.insert({ColumnUInt64::create(), std::make_shared<DataTypeUInt64>(), "_idx"});
|
||||||
@ -410,7 +413,10 @@ ColumnPtr getFilterByPathAndFileIndexes(const std::vector<String> & paths, const
|
|||||||
{
|
{
|
||||||
Block block;
|
Block block;
|
||||||
for (const auto & column : virtual_columns)
|
for (const auto & column : virtual_columns)
|
||||||
|
{
|
||||||
|
if (column.name == "_file" || column.name == "_path")
|
||||||
block.insert({column.type->createColumn(), column.type, column.name});
|
block.insert({column.type->createColumn(), column.type, column.name});
|
||||||
|
}
|
||||||
block.insert({ColumnUInt64::create(), std::make_shared<DataTypeUInt64>(), "_idx"});
|
block.insert({ColumnUInt64::create(), std::make_shared<DataTypeUInt64>(), "_idx"});
|
||||||
|
|
||||||
for (size_t i = 0; i != paths.size(); ++i)
|
for (size_t i = 0; i != paths.size(); ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user