diff --git a/src/Client/HedgedConnections.cpp b/src/Client/HedgedConnections.cpp index 6f5332f1ea0..9fa79dd6b77 100644 --- a/src/Client/HedgedConnections.cpp +++ b/src/Client/HedgedConnections.cpp @@ -178,7 +178,8 @@ void HedgedConnections::sendQuery( Settings modified_settings = settings; /// Queries in foreign languages are transformed to ClickHouse-SQL. Ensure the setting before sending. - modified_settings.dialect.resetValueToDefault(); + modified_settings.dialect = Dialect::clickhouse; + modified_settings.dialect.changed = false; if (disable_two_level_aggregation) { diff --git a/src/Client/MultiplexedConnections.cpp b/src/Client/MultiplexedConnections.cpp index 59949865ca0..531f596380f 100644 --- a/src/Client/MultiplexedConnections.cpp +++ b/src/Client/MultiplexedConnections.cpp @@ -127,7 +127,8 @@ void MultiplexedConnections::sendQuery( Settings modified_settings = settings; /// Queries in foreign languages are transformed to ClickHouse-SQL. Ensure the setting before sending. - modified_settings.dialect.resetValueToDefault(); + modified_settings.dialect = Dialect::clickhouse; + modified_settings.dialect.changed = false; for (auto & replica : replica_states) {