| 1737 | |
| 1738 | |
| 1739 | ASTPtr 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. |
nothing calls this directly
no test coverage detected