@@ -152,14 +152,14 @@ Status HiveDataSource::open(RuntimeState* state) {
152152 if (enable_cache_select) {
153153 // set datacache options for cache select
154154 _scanner_ctx.datacache_options = DataCacheOptions{.enable_datacache = true ,
155- .enable_cache_select = true ,
156- .enable_populate_datacache = true ,
157- .enable_datacache_async_populate_mode = false ,
158- .enable_datacache_io_adaptor = false ,
159- .modification_time = _scan_range.modification_time ,
160- .datacache_evict_probability = 100 ,
161- .datacache_priority = datacache_priority,
162- .datacache_ttl_seconds = datacache_ttl_seconds};
155+ .enable_cache_select = true ,
156+ .enable_populate_datacache = true ,
157+ .enable_datacache_async_populate_mode = false ,
158+ .enable_datacache_io_adaptor = false ,
159+ .modification_time = _scan_range.modification_time ,
160+ .datacache_evict_probability = 100 ,
161+ .datacache_priority = datacache_priority,
162+ .datacache_ttl_seconds = datacache_ttl_seconds};
163163 } else if (state->query_options ().__isset .enable_scan_datacache &&
164164 state->query_options ().enable_scan_datacache ) {
165165 // set datacache options for normal query
@@ -220,8 +220,7 @@ Status HiveDataSource::open(RuntimeState* state) {
220220#endif
221221
222222 if (state->query_options ().__isset .enable_dynamic_prune_scan_range ) {
223- _scanner_ctx.options .enable_dynamic_prune_scan_range =
224- state->query_options ().enable_dynamic_prune_scan_range ;
223+ _scanner_ctx.options .enable_dynamic_prune_scan_range = state->query_options ().enable_dynamic_prune_scan_range ;
225224 }
226225 if (state->query_options ().__isset .enable_connector_split_io_tasks ) {
227226 _scanner_ctx.options .enable_split_tasks = state->query_options ().enable_connector_split_io_tasks ;
@@ -644,8 +643,7 @@ void HiveDataSource::_init_counter(RuntimeState* state) {
644643 ADD_CHILD_COUNTER (_runtime_profile, " DataCacheWriteCounter" , TUnit::UNIT , prefix);
645644 _scanner_ctx.profile .datacache_write_bytes =
646645 ADD_CHILD_COUNTER (_runtime_profile, " DataCacheWriteBytes" , TUnit::BYTES , prefix);
647- _scanner_ctx.profile .datacache_write_timer =
648- ADD_CHILD_TIMER (_runtime_profile, " DataCacheWriteTimer" , prefix);
646+ _scanner_ctx.profile .datacache_write_timer = ADD_CHILD_TIMER (_runtime_profile, " DataCacheWriteTimer" , prefix);
649647 _scanner_ctx.profile .datacache_write_fail_counter =
650648 ADD_CHILD_COUNTER (_runtime_profile, " DataCacheWriteFailCounter" , TUnit::UNIT , prefix);
651649 _scanner_ctx.profile .datacache_write_fail_bytes =
@@ -666,8 +664,7 @@ void HiveDataSource::_init_counter(RuntimeState* state) {
666664 _scanner_ctx.profile .app_io_bytes_read_counter =
667665 ADD_CHILD_COUNTER (_runtime_profile, " AppIOBytesRead" , TUnit::BYTES , prefix);
668666 _scanner_ctx.profile .app_io_timer = ADD_CHILD_TIMER (_runtime_profile, " AppIOTime" , prefix);
669- _scanner_ctx.profile .app_io_counter =
670- ADD_CHILD_COUNTER (_runtime_profile, " AppIOCounter" , TUnit::UNIT , prefix);
667+ _scanner_ctx.profile .app_io_counter = ADD_CHILD_COUNTER (_runtime_profile, " AppIOCounter" , TUnit::UNIT , prefix);
671668 _scanner_ctx.profile .fs_bytes_read_counter =
672669 ADD_CHILD_COUNTER (_runtime_profile, " FSIOBytesRead" , TUnit::BYTES , prefix);
673670 _scanner_ctx.profile .fs_io_counter = ADD_CHILD_COUNTER (_runtime_profile, " FSIOCounter" , TUnit::UNIT , prefix);
0 commit comments