Only set dialect if KQL or PRQL.

This commit is contained in:
Austin Kothig 2024-02-08 10:09:02 -05:00
parent 0dfcf954a1
commit f5ba7fde9f
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

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

View File

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