From 2aae37f93b413176d683259e0bc712728af931db Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 11 Jul 2021 19:40:59 -0400 Subject: represent tablesample.sampling as FunctionElement in all cases Fixed regression where the :func:`_sql.tablesample` construct would fail to be executable when constructed given a floating-point sampling value not embedded within a SQL function. Fixes: #6735 Change-Id: I557bcd4bdbffc4329ad69d5659ba99b1c8deb554 --- test/sql/test_compare.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test/sql') diff --git a/test/sql/test_compare.py b/test/sql/test_compare.py index e96a47553..365ed52b2 100644 --- a/test/sql/test_compare.py +++ b/test/sql/test_compare.py @@ -504,6 +504,7 @@ class CoreFixtures(object): .union_all(select(table_a.c.b)), select(table_a.c.a).lateral(), select(table_a.c.a).lateral(name="bar"), + table_a.tablesample(0.75), table_a.tablesample(func.bernoulli(1)), table_a.tablesample(func.bernoulli(1), seed=func.random()), table_a.tablesample(func.bernoulli(1), seed=func.other_random()), -- cgit v1.2.1