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

Method getCreateTableForPullShard

programs/copier/ClusterCopier.cpp:1739–1751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1737
1738
1739ASTPtr ClusterCopier::getCreateTableForPullShard(const ConnectionTimeouts & timeouts, TaskShard & task_shard)
1740{
1741 /// Fetch and parse (possibly) new definition
1742 auto connection_entry = task_shard.info.pool->get(timeouts, &task_cluster->settings_pull, true);
1743 String create_query_pull_str = getRemoteCreateTable(
1744 task_shard.task_table.table_pull,
1745 *connection_entry,
1746 task_cluster->settings_pull);
1747
1748 ParserCreateQuery parser_create_query(ParserSettings::CLICKHOUSE);
1749 const auto & settings = getContext()->getSettingsRef();
1750 return parseQuery(parser_create_query, create_query_pull_str, settings.max_query_size, settings.max_parser_depth);
1751}
1752
1753
1754/// If it is implicitly asked to create split Distributed table for certain piece on current shard, we will do it.

Callers

nothing calls this directly

Calls 2

parseQueryFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected