Added a new exclusion rule group_by_complex_expression
which disables tests that use "GROUP BY <expr>", which seems
to be not viable for at least two third party dialects.
Change-Id: I47284513382ae93f5a3d12c734b3a44643147c99
--- /dev/null
+.. change::
+ :tags: bug, tests
+
+ Added a new exclusion rule group_by_complex_expression
+ which disables tests that use "GROUP BY <expr>", which seems
+ to be not viable for at least two third party dialects.
return exclusions.open()
+ @property
+ def group_by_complex_expression(self):
+ """target platform supports SQL expressions in GROUP BY
+
+ e.g.
+
+ SELECT x + y AS somelabel FROM table GROUP BY x + y
+
+ """
+
+ return exclusions.open()
@property
def sane_rowcount(self):
[(7, ), (5, ), (3, )]
)
+ @testing.requires.group_by_complex_expression
def test_group_by_composed(self):
table = self.tables.some_table
expr = (table.c.x + table.c.y).label('lx')