MCPcopy Create free account
hub / github.com/ByConity/ByConity / createQueryContext

Method createQueryContext

src/Statistics/SubqueryHelper.cpp:7–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5{
6
7ContextMutablePtr SubqueryHelper::createQueryContext(ContextPtr context)
8{
9 auto query_context = createContextForSubQuery(context, "_create_stats_internal_");
10
11 SettingsChanges changes;
12 changes.emplace_back("dialect_type", "CLICKHOUSE");
13 changes.emplace_back("database_atomic_wait_for_drop_and_detach_synchronously", true);
14 changes.emplace_back("enable_deterministic_sample_by_range", true);
15 changes.emplace_back("uniform_sample_by_range", true);
16 changes.emplace_back("insert_distributed_sync", true);
17 query_context->applySettingsChanges(changes);
18
19 return query_context;
20}
21
22}

Callers 4

TEST_FFunction · 0.45
getAdvisesMethod · 0.45
TEST_FFunction · 0.45

Calls 3

createContextForSubQueryFunction · 0.85
emplace_backMethod · 0.45
applySettingsChangesMethod · 0.45

Tested by 4

TEST_FFunction · 0.36
getAdvisesMethod · 0.36
TEST_FFunction · 0.36