From 10159b61bf6b75cf2bb0c7469f93c069fd70af02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Wis=CC=81niewski?= Date: Wed, 22 Jul 2020 19:02:38 +0200 Subject: [PATCH] drop quoting group by --- src/infi/clickhouse_orm/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infi/clickhouse_orm/query.py b/src/infi/clickhouse_orm/query.py index 92efec4..456fe85 100644 --- a/src/infi/clickhouse_orm/query.py +++ b/src/infi/clickhouse_orm/query.py @@ -387,7 +387,7 @@ def as_sql(self): sql += '\nWHERE ' + self.conditions_as_sql(prewhere=False) if self._grouping_fields: - sql += '\nGROUP BY %s' % comma_join('`%s`' % field for field in self._grouping_fields) + sql += '\nGROUP BY %s' % comma_join('%s' % field for field in self._grouping_fields) if self._grouping_with_totals: sql += ' WITH TOTALS'