diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/having_count/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/having_count/out.sql deleted file mode 100644 index 44b686271249..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/having_count/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t0.foo_id, - SUM(t0.f) AS total -FROM star1 AS t0 -GROUP BY - 1 -HAVING - COUNT(*) > 100 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/having_sum/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/having_sum/out.sql deleted file mode 100644 index 13fe6412d1a1..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/having_sum/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t0.foo_id, - SUM(t0.f) AS total -FROM star1 AS t0 -GROUP BY - 1 -HAVING - SUM(t0.f) > 10 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/single/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/single/out.sql deleted file mode 100644 index dbf4aadac203..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/single/out.sql +++ /dev/null @@ -1,6 +0,0 @@ -SELECT - t0.foo_id, - SUM(t0.f) AS total -FROM star1 AS t0 -GROUP BY - 1 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/two/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/two/out.sql deleted file mode 100644 index be9b430bd3d3..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_aggregate/two/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t0.foo_id, - t0.bar_id, - SUM(t0.f) AS total -FROM star1 AS t0 -GROUP BY - 1, - 2 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_between/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_between/out.sql deleted file mode 100644 index 49945eade59b..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_between/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col BETWEEN 5 AND 10 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_boolean_conjunction/and/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_boolean_conjunction/and/out.sql deleted file mode 100644 index ba951079a52c..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_boolean_conjunction/and/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col > 0 AND t0.double_col < 5 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_boolean_conjunction/or/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_boolean_conjunction/or/out.sql deleted file mode 100644 index 0eae59ae478e..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_boolean_conjunction/or/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col < 0 OR t0.double_col > 5 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_coalesce/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_coalesce/out.sql deleted file mode 100644 index 834328e1950e..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_coalesce/out.sql +++ /dev/null @@ -1,9 +0,0 @@ -SELECT - COALESCE( - CASE WHEN ( - t0.double_col > 30 - ) THEN t0.double_col ELSE NULL END, - NULL, - t0.float_col - ) AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/eq/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/eq/out.sql deleted file mode 100644 index 5a4868b92433..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/eq/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col = 5 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/ge/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/ge/out.sql deleted file mode 100644 index 0e4b6d8eaf0d..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/ge/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col >= 5 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/gt/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/gt/out.sql deleted file mode 100644 index b3b7622e610b..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/gt/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col > 5 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/le/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/le/out.sql deleted file mode 100644 index e9cbcc8befd5..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/le/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col <= 5 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/lt/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/lt/out.sql deleted file mode 100644 index 680fc19ea2b5..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/lt/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col < 5 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/ne/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/ne/out.sql deleted file mode 100644 index 1ff27a8f6a59..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_comparisons/ne/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col <> 5 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_cte_factor_distinct_but_equal/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_cte_factor_distinct_but_equal/out.sql deleted file mode 100644 index 8331e2ce32cc..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_cte_factor_distinct_but_equal/out.sql +++ /dev/null @@ -1,14 +0,0 @@ -WITH t0 AS ( - SELECT - t2.g AS g, - SUM(t2.f) AS metric - FROM alltypes AS t2 - GROUP BY - 1 -) -SELECT - t0.g, - t0.metric -FROM t0 -JOIN t0 AS t1 - ON t0.g = t1.g \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/count_distinct/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/count_distinct/out.sql deleted file mode 100644 index 37382bcf5149..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/count_distinct/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - COUNT(DISTINCT t0.int_col) AS nunique -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/group_by_count_distinct/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/group_by_count_distinct/out.sql deleted file mode 100644 index 14b6c6d83477..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/group_by_count_distinct/out.sql +++ /dev/null @@ -1,6 +0,0 @@ -SELECT - t0.string_col, - COUNT(DISTINCT t0.int_col) AS nunique -FROM functional_alltypes AS t0 -GROUP BY - 1 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/projection_distinct/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/projection_distinct/out.sql deleted file mode 100644 index 8359b989f716..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/projection_distinct/out.sql +++ /dev/null @@ -1,4 +0,0 @@ -SELECT DISTINCT - t0.string_col, - t0.int_col -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/single_column_projection_distinct/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/single_column_projection_distinct/out.sql deleted file mode 100644 index 764f4a34e2c9..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/single_column_projection_distinct/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT DISTINCT - t0.string_col -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/table_distinct/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/table_distinct/out.sql deleted file mode 100644 index 2714f3fccb60..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_distinct/table_distinct/out.sql +++ /dev/null @@ -1,15 +0,0 @@ -SELECT DISTINCT - t0.id, - t0.bool_col, - t0.tinyint_col, - t0.smallint_col, - t0.int_col, - t0.bigint_col, - t0.float_col, - t0.double_col, - t0.date_string_col, - t0.string_col, - t0.timestamp_col, - t0.year, - t0.month -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_exists/e1.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_exists/e1.sql deleted file mode 100644 index 719f75891423..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_exists/e1.sql +++ /dev/null @@ -1,13 +0,0 @@ -SELECT - t0.key1, - t0.key2, - t0.value1 -FROM foo_t AS t0 -WHERE - EXISTS( - SELECT - 1 AS anon_1 - FROM bar_t AS t1 - WHERE - t0.key1 = t1.key1 - ) \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_exists/e2.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_exists/e2.sql deleted file mode 100644 index d4f40fcd540a..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_exists/e2.sql +++ /dev/null @@ -1,13 +0,0 @@ -SELECT - t0.key1, - t0.key2, - t0.value1 -FROM foo_t AS t0 -WHERE - EXISTS( - SELECT - 1 AS anon_1 - FROM bar_t AS t1 - WHERE - t0.key1 = t1.key1 AND t1.key2 = 'foo' - ) \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_filter_group_by_agg_with_same_name/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_filter_group_by_agg_with_same_name/out.sql deleted file mode 100644 index 8e3006c0e83e..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_filter_group_by_agg_with_same_name/out.sql +++ /dev/null @@ -1,13 +0,0 @@ -SELECT - t0.int_col, - t0.bigint_col -FROM ( - SELECT - t1.int_col AS int_col, - SUM(t1.bigint_col) AS bigint_col - FROM t AS t1 - GROUP BY - 1 -) AS t0 -WHERE - t0.bigint_col = 60 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_gh_1045/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_gh_1045/out.sql deleted file mode 100644 index 5f90c82abeae..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_gh_1045/out.sql +++ /dev/null @@ -1,41 +0,0 @@ -WITH t2 AS ( - SELECT - t4.id1 AS t1_id1, - t4.val1 AS t1_val1 - FROM test1 AS t4 -), t0 AS ( - SELECT - t4.val2 AS val2, - t4.dt AS dt, - CAST(t4.id3 AS BIGINT) AS id3 - FROM test3 AS t4 -), t1 AS ( - SELECT - t0.dt AS dt, - t0.id3 AS id3, - t0.id3 AS t3_val2 - FROM t0 -) -SELECT - t2.t1_id1, - t2.t1_val1, - t3.dt, - t3.id3, - t3.t3_val2, - t3.id2a, - t3.id2b, - t3.val2 -FROM t2 -LEFT OUTER JOIN ( - SELECT - t1.dt AS dt, - t1.id3 AS id3, - t1.t3_val2 AS t3_val2, - t4.id2a AS id2a, - t4.id2b AS id2b, - t4.val2 AS val2 - FROM t1 - JOIN test2 AS t4 - ON t4.id2b = t1.id3 -) AS t3 - ON t2.t1_id1 = t3.id2a \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_isnull_notnull/isnull/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_isnull_notnull/isnull/out.sql deleted file mode 100644 index d06c0383bb09..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_isnull_notnull/isnull/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col IS NULL AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_isnull_notnull/notnull/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_isnull_notnull/notnull/out.sql deleted file mode 100644 index f33c3466083a..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_isnull_notnull/notnull/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - NOT t0.double_col IS NULL AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_join_just_materialized/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_join_just_materialized/out.sql deleted file mode 100644 index b1a86d38e17e..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_join_just_materialized/out.sql +++ /dev/null @@ -1,21 +0,0 @@ -SELECT - t0.n_nationkey, - t0.n_name, - t0.n_regionkey, - t0.n_comment, - t1.r_regionkey, - t1.r_name, - t1.r_comment, - t2.c_custkey, - t2.c_name, - t2.c_address, - t2.c_nationkey, - t2.c_phone, - t2.c_acctbal, - t2.c_mktsegment, - t2.c_comment -FROM tpch_nation AS t0 -JOIN tpch_region AS t1 - ON t0.n_regionkey = t1.r_regionkey -JOIN tpch_customer AS t2 - ON t0.n_nationkey = t2.c_nationkey \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/inner/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/inner/out.sql deleted file mode 100644 index 199f140d4ae6..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/inner/out.sql +++ /dev/null @@ -1,11 +0,0 @@ -SELECT - t0.r_regionkey, - t0.r_name, - t0.r_comment, - t1.n_nationkey, - t1.n_name, - t1.n_regionkey, - t1.n_comment -FROM tpch_region AS t0 -JOIN tpch_nation AS t1 - ON t0.r_regionkey = t1.n_regionkey \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/inner_select/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/inner_select/out.sql deleted file mode 100644 index addf9d1f0eb1..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/inner_select/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t1.n_nationkey, - t1.n_name, - t1.n_regionkey, - t1.n_comment -FROM tpch_region AS t0 -JOIN tpch_nation AS t1 - ON t0.r_regionkey = t1.n_regionkey \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/left/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/left/out.sql deleted file mode 100644 index cfb4fefdb42d..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/left/out.sql +++ /dev/null @@ -1,11 +0,0 @@ -SELECT - t0.r_regionkey, - t0.r_name, - t0.r_comment, - t1.n_nationkey, - t1.n_name, - t1.n_regionkey, - t1.n_comment -FROM tpch_region AS t0 -LEFT OUTER JOIN tpch_nation AS t1 - ON t0.r_regionkey = t1.n_regionkey \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/left_select/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/left_select/out.sql deleted file mode 100644 index ab9c0eada46a..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/left_select/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t1.n_nationkey, - t1.n_name, - t1.n_regionkey, - t1.n_comment -FROM tpch_region AS t0 -LEFT OUTER JOIN tpch_nation AS t1 - ON t0.r_regionkey = t1.n_regionkey \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/outer/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/outer/out.sql deleted file mode 100644 index 30280bb35a32..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/outer/out.sql +++ /dev/null @@ -1,11 +0,0 @@ -SELECT - t0.r_regionkey, - t0.r_name, - t0.r_comment, - t1.n_nationkey, - t1.n_name, - t1.n_regionkey, - t1.n_comment -FROM tpch_region AS t0 -FULL OUTER JOIN tpch_nation AS t1 - ON t0.r_regionkey = t1.n_regionkey \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/outer_select/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/outer_select/out.sql deleted file mode 100644 index e24289514fd2..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_joins/outer_select/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t1.n_nationkey, - t1.n_name, - t1.n_regionkey, - t1.n_comment -FROM tpch_region AS t0 -FULL OUTER JOIN tpch_nation AS t1 - ON t0.r_regionkey = t1.n_regionkey \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit/expr_fn0/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit/expr_fn0/out.sql deleted file mode 100644 index 9ca7d8f1be00..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit/expr_fn0/out.sql +++ /dev/null @@ -1,7 +0,0 @@ -SELECT - t0.c, - t0.f, - t0.foo_id, - t0.bar_id -FROM star1 AS t0 -LIMIT 10 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit/expr_fn1/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit/expr_fn1/out.sql deleted file mode 100644 index d23ef1ab1495..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit/expr_fn1/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t0.c, - t0.f, - t0.foo_id, - t0.bar_id -FROM star1 AS t0 -LIMIT 10 -OFFSET 5 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit_filter/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit_filter/out.sql deleted file mode 100644 index 3257a36c5d96..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit_filter/out.sql +++ /dev/null @@ -1,9 +0,0 @@ -SELECT - t0.c, - t0.f, - t0.foo_id, - t0.bar_id -FROM star1 AS t0 -WHERE - t0.f > 0 -LIMIT 10 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit_subquery/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit_subquery/out.sql deleted file mode 100644 index 68323ddb9844..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_limit_subquery/out.sql +++ /dev/null @@ -1,16 +0,0 @@ -SELECT - t0.c, - t0.f, - t0.foo_id, - t0.bar_id -FROM ( - SELECT - t1.c AS c, - t1.f AS f, - t1.foo_id AS foo_id, - t1.bar_id AS bar_id - FROM star1 AS t1 - LIMIT 10 -) AS t0 -WHERE - t0.f > 0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_lower_projection_sort_key/decompiled.py b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_lower_projection_sort_key/decompiled.py deleted file mode 100644 index 583aebc6c35b..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_lower_projection_sort_key/decompiled.py +++ /dev/null @@ -1,15 +0,0 @@ -import ibis - - -star2 = ibis.table( - name="star2", schema={"foo_id": "string", "value1": "float64", "value3": "float64"} -) -star1 = ibis.table( - name="star1", - schema={"c": "int32", "f": "float64", "foo_id": "string", "bar_id": "string"}, -) -agg = star1.group_by(star1.foo_id).aggregate(star1.f.sum().name("total")) -proj = agg.inner_join(star2, agg.foo_id == star2.foo_id).select([agg, star2.value1]) -proj1 = proj.filter(proj.total > 100) - -result = proj1.order_by(proj1.total.desc()) diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_lower_projection_sort_key/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_lower_projection_sort_key/out.sql deleted file mode 100644 index 3f60de381072..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_lower_projection_sort_key/out.sql +++ /dev/null @@ -1,31 +0,0 @@ -WITH t0 AS ( - SELECT - t3.foo_id AS foo_id, - SUM(t3.f) AS total - FROM star1 AS t3 - GROUP BY - 1 -), t1 AS ( - SELECT - t0.foo_id AS foo_id, - t0.total AS total, - t3.value1 AS value1 - FROM t0 - JOIN star2 AS t3 - ON t0.foo_id = t3.foo_id -) -SELECT - t2.foo_id, - t2.total, - t2.value1 -FROM ( - SELECT - t1.foo_id AS foo_id, - t1.total AS total, - t1.value1 AS value1 - FROM t1 - WHERE - t1.total > 100 -) AS t2 -ORDER BY - t2.total DESC \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_multi_join/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_multi_join/out.sql deleted file mode 100644 index f6e048bd3fc1..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_multi_join/out.sql +++ /dev/null @@ -1,20 +0,0 @@ -SELECT - t0.x1, - t0.y1, - t1.x2, - t2.x3, - t2.y2, - t2.x4 -FROM t1 AS t0 -JOIN t2 AS t1 - ON t0.x1 = t1.x2 -JOIN ( - SELECT - t3.x3 AS x3, - t3.y2 AS y2, - t4.x4 AS x4 - FROM t3 AS t3 - JOIN t4 AS t4 - ON t3.x3 = t4.x4 -) AS t2 - ON t0.y1 = t2.y2 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_mutate_filter_join_no_cross_join/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_mutate_filter_join_no_cross_join/out.sql deleted file mode 100644 index 411344467054..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_mutate_filter_join_no_cross_join/out.sql +++ /dev/null @@ -1,11 +0,0 @@ -SELECT - t0.person_id -FROM ( - SELECT - t1.person_id AS person_id, - t1.birth_datetime AS birth_datetime, - 400 AS age - FROM person AS t1 -) AS t0 -WHERE - t0.age <= 40 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_named_expr/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_named_expr/out.sql deleted file mode 100644 index db5c06a8a7ad..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_named_expr/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col * 2 AS foo -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_negate/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_negate/out.sql deleted file mode 100644 index c5ea4a804985..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_negate/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - t0.double_col <= 0 AS tmp -FROM functional_alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_no_cart_join/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_no_cart_join/out.sql deleted file mode 100644 index ed688ae3af3a..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_no_cart_join/out.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH t0 AS ( - SELECT - t2.ancestor_level_name AS ancestor_level_name, - t2.ancestor_level_number AS ancestor_level_number, - t2.ancestor_node_sort_order AS ancestor_node_sort_order, - t2.descendant_node_natural_key AS descendant_node_natural_key, - CONCAT(LPAD('-', ( - t2.ancestor_level_number - 1 - ) * 7, '-'), t2.ancestor_level_name) AS product_level_name - FROM products AS t2 -) -SELECT - t0.ancestor_node_sort_order, - 1 AS n -FROM facts AS t1 -JOIN t0 - ON t1.product_id = t0.descendant_node_natural_key -GROUP BY - 1 -ORDER BY - t0.ancestor_node_sort_order ASC NULLS FIRST \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_no_cross_join/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_no_cross_join/out.sql deleted file mode 100644 index 693af5a03d6c..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_no_cross_join/out.sql +++ /dev/null @@ -1,16 +0,0 @@ -SELECT - t0.id, - t0.personal, - t0.family, - t1.taken, - t1.person, - t1.quant, - t1.reading, - t2.id AS id_right, - t2.site, - t2.dated -FROM person AS t0 -JOIN survey AS t1 - ON t0.id = t1.person -JOIN visited AS t2 - ON t2.id = t1.taken \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_not_exists/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_not_exists/out.sql deleted file mode 100644 index 4bdb7b96f120..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_not_exists/out.sql +++ /dev/null @@ -1,15 +0,0 @@ -SELECT - t0.key1, - t0.key2, - t0.value1 -FROM foo_t AS t0 -WHERE - NOT ( - EXISTS( - SELECT - 1 AS anon_1 - FROM bar_t AS t1 - WHERE - t0.key1 = t1.key1 - ) - ) \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_order_by/column/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_order_by/column/out.sql deleted file mode 100644 index deb4bfe00424..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_order_by/column/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t0.c, - t0.f, - t0.foo_id, - t0.bar_id -FROM star1 AS t0 -ORDER BY - t0.f ASC NULLS FIRST \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_order_by/random/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_order_by/random/out.sql deleted file mode 100644 index 7c123a35a350..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_order_by/random/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t0.c, - t0.f, - t0.foo_id, - t0.bar_id -FROM star1 AS t0 -ORDER BY - RANDOM() ASC NULLS FIRST \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_order_by_expr/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_order_by_expr/out.sql deleted file mode 100644 index b157d6fa3e35..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_order_by_expr/out.sql +++ /dev/null @@ -1,13 +0,0 @@ -SELECT - t0.a, - t0.b -FROM ( - SELECT - t1.a AS a, - t1.b AS b - FROM t AS t1 - WHERE - t1.a = 1 -) AS t0 -ORDER BY - CONCAT(t0.b, 'a') ASC NULLS FIRST \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_searched_case/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_searched_case/out.sql deleted file mode 100644 index f808d3840acd..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_searched_case/out.sql +++ /dev/null @@ -1,13 +0,0 @@ -SELECT - CASE - WHEN ( - t0.f > 0 - ) - THEN t0.d * 2 - WHEN ( - t0.c < 0 - ) - THEN t0.a * 2 - ELSE CAST(NULL AS BIGINT) - END AS tmp -FROM alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_self_reference_in_not_exists/anti.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_self_reference_in_not_exists/anti.sql deleted file mode 100644 index 88a1788d686f..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_self_reference_in_not_exists/anti.sql +++ /dev/null @@ -1,25 +0,0 @@ -SELECT - t0.id, - t0.bool_col, - t0.tinyint_col, - t0.smallint_col, - t0.int_col, - t0.bigint_col, - t0.float_col, - t0.double_col, - t0.date_string_col, - t0.string_col, - t0.timestamp_col, - t0.year, - t0.month -FROM functional_alltypes AS t0 -WHERE - NOT ( - EXISTS( - SELECT - 1 AS anon_1 - FROM functional_alltypes AS t1 - WHERE - t0.string_col = t1.string_col - ) - ) \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_self_reference_in_not_exists/semi.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_self_reference_in_not_exists/semi.sql deleted file mode 100644 index b318dba887e9..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_self_reference_in_not_exists/semi.sql +++ /dev/null @@ -1,23 +0,0 @@ -SELECT - t0.id, - t0.bool_col, - t0.tinyint_col, - t0.smallint_col, - t0.int_col, - t0.bigint_col, - t0.float_col, - t0.double_col, - t0.date_string_col, - t0.string_col, - t0.timestamp_col, - t0.year, - t0.month -FROM functional_alltypes AS t0 -WHERE - EXISTS( - SELECT - 1 AS anon_1 - FROM functional_alltypes AS t1 - WHERE - t0.string_col = t1.string_col - ) \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_self_reference_join/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_self_reference_join/out.sql deleted file mode 100644 index 0a087e135871..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_self_reference_join/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t0.c, - t0.f, - t0.foo_id, - t0.bar_id -FROM star1 AS t0 -JOIN star1 AS t1 - ON t0.foo_id = t1.bar_id \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_simple_case/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_simple_case/out.sql deleted file mode 100644 index 3575c8d6e653..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_simple_case/out.sql +++ /dev/null @@ -1,3 +0,0 @@ -SELECT - CASE t0.g WHEN 'foo' THEN 'bar' WHEN 'baz' THEN 'qux' ELSE 'default' END AS tmp -FROM alltypes AS t0 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_sort_aggregation_translation_failure/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_sort_aggregation_translation_failure/out.sql deleted file mode 100644 index 2e03b4c58c42..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_sort_aggregation_translation_failure/out.sql +++ /dev/null @@ -1,13 +0,0 @@ -SELECT - t0.string_col, - t0.foo -FROM ( - SELECT - t1.string_col AS string_col, - MAX(t1.double_col) AS foo - FROM functional_alltypes AS t1 - GROUP BY - 1 -) AS t0 -ORDER BY - t0.foo DESC \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_subquery_aliased/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_subquery_aliased/out.sql deleted file mode 100644 index 5eaa9d5c174d..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_subquery_aliased/out.sql +++ /dev/null @@ -1,15 +0,0 @@ -WITH t0 AS ( - SELECT - t2.foo_id AS foo_id, - SUM(t2.f) AS total - FROM star1 AS t2 - GROUP BY - 1 -) -SELECT - t0.foo_id, - t0.total, - t1.value1 -FROM t0 -JOIN star2 AS t1 - ON t0.foo_id = t1.foo_id \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_tpc_h11/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_tpc_h11/out.sql deleted file mode 100644 index 08e5f0d98bcc..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_tpc_h11/out.sql +++ /dev/null @@ -1,41 +0,0 @@ -WITH t0 AS ( - SELECT - t2.ps_partkey AS ps_partkey, - SUM(t2.ps_supplycost * t2.ps_availqty) AS value - FROM partsupp AS t2 - JOIN supplier AS t3 - ON t2.ps_suppkey = t3.s_suppkey - JOIN nation AS t4 - ON t4.n_nationkey = t3.s_nationkey - WHERE - t4.n_name = 'GERMANY' - GROUP BY - 1 -) -SELECT - t1.ps_partkey, - t1.value -FROM ( - SELECT - t0.ps_partkey AS ps_partkey, - t0.value AS value - FROM t0 - WHERE - t0.value > ( - SELECT - anon_1.total - FROM ( - SELECT - SUM(t2.ps_supplycost * t2.ps_availqty) AS total - FROM partsupp AS t2 - JOIN supplier AS t3 - ON t2.ps_suppkey = t3.s_suppkey - JOIN nation AS t4 - ON t4.n_nationkey = t3.s_nationkey - WHERE - t4.n_name = 'GERMANY' - ) AS anon_1 - ) * 0.0001 -) AS t1 -ORDER BY - t1.value DESC \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_tpc_h17/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_tpc_h17/out.sql deleted file mode 100644 index 1a2b84b40323..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_tpc_h17/out.sql +++ /dev/null @@ -1,15 +0,0 @@ -SELECT - SUM(t0.l_extendedprice) / 7 AS avg_yearly -FROM lineitem AS t0 -JOIN part AS t1 - ON t1.p_partkey = t0.l_partkey -WHERE - t1.p_brand = 'Brand#23' - AND t1.p_container = 'MED BOX' - AND t0.l_quantity < ( - SELECT - AVG(t0.l_quantity) AS "Mean(l_quantity)" - FROM lineitem AS t0 - WHERE - t0.l_partkey = t1.p_partkey - ) * 0.2 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_correlated_subquery/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_correlated_subquery/out.sql deleted file mode 100644 index a1ea49a1b148..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_correlated_subquery/out.sql +++ /dev/null @@ -1,14 +0,0 @@ -SELECT - t0.job, - t0.dept_id, - t0.year, - t0.y -FROM foo AS t0 -WHERE - t0.y > ( - SELECT - AVG(t1.y) AS "Mean(y)" - FROM foo AS t1 - WHERE - t0.dept_id = t1.dept_id - ) \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_correlated_subquery_with_join/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_correlated_subquery_with_join/out.sql deleted file mode 100644 index 2ef3907802a8..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_correlated_subquery_with_join/out.sql +++ /dev/null @@ -1,35 +0,0 @@ -WITH t0 AS ( - SELECT - t2.ps_partkey AS ps_partkey, - t2.ps_supplycost AS ps_supplycost - FROM partsupp AS t2 - JOIN supplier AS t3 - ON t3.s_suppkey = t2.ps_suppkey - WHERE - t2.ps_partkey = ( - SELECT - anon_1.p_partkey - FROM ( - SELECT - t1.p_partkey AS p_partkey, - t2.ps_partkey AS ps_partkey, - t2.ps_supplycost AS ps_supplycost, - t2.ps_suppkey AS ps_suppkey - FROM part AS t1 - JOIN partsupp AS t2 - ON t1.p_partkey = t2.ps_partkey - ) AS anon_1 - ) -) -SELECT - t1.p_partkey, - t2.ps_supplycost -FROM part AS t1 -JOIN partsupp AS t2 - ON t1.p_partkey = t2.ps_partkey -WHERE - t2.ps_supplycost = ( - SELECT - MIN(t0.ps_supplycost) AS "Min(ps_supplycost)" - FROM t0 - ) \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_simple_comparisons/decompiled.py b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_simple_comparisons/decompiled.py deleted file mode 100644 index 3c35aab07537..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_simple_comparisons/decompiled.py +++ /dev/null @@ -1,9 +0,0 @@ -import ibis - - -star1 = ibis.table( - name="star1", - schema={"c": "int32", "f": "float64", "foo_id": "string", "bar_id": "string"}, -) - -result = star1.filter([star1.f > 0, star1.c < (star1.f * 2)]) diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_simple_comparisons/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_simple_comparisons/out.sql deleted file mode 100644 index 2e3af9fa2672..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_simple_comparisons/out.sql +++ /dev/null @@ -1,8 +0,0 @@ -SELECT - t0.c, - t0.f, - t0.foo_id, - t0.bar_id -FROM star1 AS t0 -WHERE - t0.f > 0 AND t0.c < t0.f * 2 \ No newline at end of file diff --git a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_uncorrelated_subquery/out.sql b/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_uncorrelated_subquery/out.sql deleted file mode 100644 index d64e69ba3894..000000000000 --- a/ibis/backends/tests/sql/snapshots/test_sqlalchemy/test_where_uncorrelated_subquery/out.sql +++ /dev/null @@ -1,12 +0,0 @@ -SELECT - t0.job, - t0.dept_id, - t0.year, - t0.y -FROM foo AS t0 -WHERE - t0.job IN ( - SELECT - t1.job - FROM bar AS t1 - ) \ No newline at end of file