summaryrefslogtreecommitdiffstats
path: root/tests/test_build.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_build.py')
-rw-r--r--tests/test_build.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_build.py b/tests/test_build.py
index 1e28689..f354640 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -128,6 +128,16 @@ class TestBuild(unittest.TestCase):
"postgres",
),
(
+ lambda: select("x").from_("tbl").hint("repartition(100)"),
+ "SELECT /*+ REPARTITION(100) */ x FROM tbl",
+ "spark",
+ ),
+ (
+ lambda: select("x").from_("tbl").hint("coalesce(3)", "broadcast(x)"),
+ "SELECT /*+ COALESCE(3), BROADCAST(x) */ x FROM tbl",
+ "spark",
+ ),
+ (
lambda: select("x", "y").from_("tbl").group_by("x"),
"SELECT x, y FROM tbl GROUP BY x",
),