Skip to content

Commit ff7562b

Browse files
committed
Small iceberg read optimization optimization
1 parent 1a190de commit ff7562b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Interpreters/ClusterFunctionReadTask.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ namespace ErrorCodes
1919
namespace Setting
2020
{
2121
extern const SettingsBool cluster_function_process_archive_on_multiple_nodes;
22+
extern const SettingsBool allow_experimental_iceberg_read_optimization;
2223
}
2324

2425
ClusterFunctionReadTaskResponse::ClusterFunctionReadTaskResponse(ObjectInfoPtr object, const ContextPtr & context)
@@ -29,7 +30,8 @@ ClusterFunctionReadTaskResponse::ClusterFunctionReadTaskResponse(ObjectInfoPtr o
2930
if (object->data_lake_metadata.has_value())
3031
data_lake_metadata = object->data_lake_metadata.value();
3132

32-
file_meta_info = object->file_meta_info;
33+
if (context->getSettingsRef()[Setting::allow_experimental_iceberg_read_optimization])
34+
file_meta_info = object->file_meta_info;
3335

3436
const bool send_over_whole_archive = !context->getSettingsRef()[Setting::cluster_function_process_archive_on_multiple_nodes];
3537
path = send_over_whole_archive ? object->getPathOrPathToArchiveIfArchive() : object->getPath();

0 commit comments

Comments
 (0)