Skip to content

Commit 6ca505e

Browse files
committed
use columns description instead of columns file. This should not break formats that support subset
1 parent 1b7a32b commit 6ca505e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Storages/prepareReadingFromFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ReadFromFormatInfo prepareReadingFromFormat(
101101
}
102102

103103
/// Create header for InputFormat with columns that will be read from the data.
104-
for (const auto & column : columns_in_data_file)
104+
for (const auto & column : info.columns_description)
105105
{
106106
/// Never read hive partition columns from the data file. This fixes https://github.com/ClickHouse/ClickHouse/issues/87515
107107
if (!hive_parameters.hive_partition_columns_to_read_from_file_path_map.contains(column.name))

0 commit comments

Comments
 (0)