Fix the code

This commit is contained in:
Alexey Milovidov 2024-02-19 12:19:25 +01:00 committed by Austin Kothig
parent 092ed2b16a
commit 3613464d46
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions

View File

@ -177,9 +177,8 @@ void HedgedConnections::sendQuery(
{
Settings modified_settings = settings;
// Kusto and PRQL queries to replicas are transformed to ClickHouse-SQL. Ensure the setting before sending.
if (modified_settings.dialect == Dialect::kusto || modified_settings.dialect == Dialect::prql)
modified_settings.dialect = Dialect::clickhouse;
/// Queries in foreign languages are transformed to ClickHouse-SQL. Ensure the setting before sending.
modified_settings.dialect = Dialect::clickhouse;
if (disable_two_level_aggregation)
{

View File

@ -126,9 +126,8 @@ void MultiplexedConnections::sendQuery(
Settings modified_settings = settings;
// Kusto and PRQL queries to replicas are transformed to ClickHouse-SQL. Ensure the setting before sending.
if (modified_settings.dialect == Dialect::kusto || modified_settings.dialect == Dialect::prql)
modified_settings.dialect = Dialect::clickhouse;
/// Queries in foreign languages are transformed to ClickHouse-SQL. Ensure the setting before sending.
modified_settings.dialect = Dialect::clickhouse;
for (auto & replica : replica_states)
{