diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b697d2324b..9fb4bf5054 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer - exclude: "^tests/unit/core/compile/sqlglot/.*snapshots" + exclude: "^tests/.*/snapshots" - id: check-yaml - repo: https://github.com/pycqa/isort rev: 5.12.0 diff --git a/noxfile.py b/noxfile.py index b02952f9c2..bce70069bc 100644 --- a/noxfile.py +++ b/noxfile.py @@ -720,6 +720,11 @@ def unit_prerelease(session: nox.sessions.Session): prerelease(session, os.path.join("tests", "unit")) +@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1]) +def snapshot(session: nox.sessions.Session): + run_unit(session, os.path.join("tests", "snapshot")) + + @nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS[-1]) def system_prerelease(session: nox.sessions.Session): """Run the system test suite with prerelease dependencies.""" diff --git a/tests/unit/core/compile/sqlglot/__init__.py b/tests/snapshot/__init__.py similarity index 100% rename from tests/unit/core/compile/sqlglot/__init__.py rename to tests/snapshot/__init__.py diff --git a/tests/unit/core/compile/sqlglot/aggregations/__init__.py b/tests/snapshot/aggregations/__init__.py similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/__init__.py rename to tests/snapshot/aggregations/__init__.py diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_binary_compiler/test_corr/out.sql b/tests/snapshot/aggregations/snapshots/test_binary_compiler/test_corr/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_binary_compiler/test_corr/out.sql rename to tests/snapshot/aggregations/snapshots/test_binary_compiler/test_corr/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_binary_compiler/test_cov/out.sql b/tests/snapshot/aggregations/snapshots/test_binary_compiler/test_cov/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_binary_compiler/test_cov/out.sql rename to tests/snapshot/aggregations/snapshots/test_binary_compiler/test_cov/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_nullary_compiler/test_row_number/out.sql b/tests/snapshot/aggregations/snapshots/test_nullary_compiler/test_row_number/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_nullary_compiler/test_row_number/out.sql rename to tests/snapshot/aggregations/snapshots/test_nullary_compiler/test_row_number/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_nullary_compiler/test_row_number_with_window/out.sql b/tests/snapshot/aggregations/snapshots/test_nullary_compiler/test_row_number_with_window/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_nullary_compiler/test_row_number_with_window/out.sql rename to tests/snapshot/aggregations/snapshots/test_nullary_compiler/test_row_number_with_window/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_nullary_compiler/test_size/out.sql b/tests/snapshot/aggregations/snapshots/test_nullary_compiler/test_size/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_nullary_compiler/test_size/out.sql rename to tests/snapshot/aggregations/snapshots/test_nullary_compiler/test_size/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_ordered_unary_compiler/test_array_agg/out.sql b/tests/snapshot/aggregations/snapshots/test_ordered_unary_compiler/test_array_agg/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_ordered_unary_compiler/test_array_agg/out.sql rename to tests/snapshot/aggregations/snapshots/test_ordered_unary_compiler/test_array_agg/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_ordered_unary_compiler/test_string_agg/out.sql b/tests/snapshot/aggregations/snapshots/test_ordered_unary_compiler/test_string_agg/out.sql similarity index 68% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_ordered_unary_compiler/test_string_agg/out.sql rename to tests/snapshot/aggregations/snapshots/test_ordered_unary_compiler/test_string_agg/out.sql index 321341d4a0..2ce4124347 100644 --- a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_ordered_unary_compiler/test_string_agg/out.sql +++ b/tests/snapshot/aggregations/snapshots/test_ordered_unary_compiler/test_string_agg/out.sql @@ -5,10 +5,7 @@ WITH `bfcte_0` AS ( ), `bfcte_1` AS ( SELECT COALESCE( - STRING_AGG(`string_col`, ',' - ORDER BY - `string_col` IS NULL ASC, - `string_col` ASC), + STRING_AGG(`string_col` ORDER BY `string_col` IS NULL ASC, `string_col` ASC, ','), '' ) AS `bfcol_1` FROM `bfcte_0` diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_all/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_all/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_all/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_all/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_all/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_all/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_all/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_all/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_all/window_partition_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_all/window_partition_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_all/window_partition_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_all/window_partition_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any_value/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any_value/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any_value/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any_value/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any_value/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any_value/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any_value/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any_value/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any_value/window_partition_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any_value/window_partition_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_any_value/window_partition_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_any_value/window_partition_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_approx_quartiles/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_approx_quartiles/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_approx_quartiles/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_approx_quartiles/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_approx_top_count/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_approx_top_count/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_approx_top_count/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_approx_top_count/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_count/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_count/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_count/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_count/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_count/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_count/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_count/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_count/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_count/window_partition_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_count/window_partition_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_count/window_partition_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_count/window_partition_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_date_series_diff/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_date_series_diff/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_date_series_diff/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_date_series_diff/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_dense_rank/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_dense_rank/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_dense_rank/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_dense_rank/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_diff/diff_bool.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_diff/diff_bool.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_diff/diff_bool.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_diff/diff_bool.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_diff/diff_int.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_diff/diff_int.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_diff/diff_int.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_diff/diff_int.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_last/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_first/out.sql similarity index 64% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_last/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_first/out.sql index ebeaa0e338..9a1af28e5e 100644 --- a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_last/out.sql +++ b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_first/out.sql @@ -8,10 +8,7 @@ WITH `bfcte_0` AS ( CASE WHEN `int64_col` IS NULL THEN NULL - ELSE LAST_VALUE(`int64_col`) OVER ( - ORDER BY `int64_col` DESC - ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING - ) + ELSE FIRST_VALUE(`int64_col`) OVER (ORDER BY `int64_col` DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) END AS `bfcol_1` FROM `bfcte_0` ) diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_last_non_null/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_first_non_null/out.sql similarity index 53% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_last_non_null/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_first_non_null/out.sql index c626c263ac..f574a49d96 100644 --- a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_last_non_null/out.sql +++ b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_first_non_null/out.sql @@ -5,10 +5,7 @@ WITH `bfcte_0` AS ( ), `bfcte_1` AS ( SELECT *, - LAST_VALUE(`int64_col` IGNORE NULLS) OVER ( - ORDER BY `int64_col` ASC NULLS LAST - ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING - ) AS `bfcol_1` + FIRST_VALUE(`int64_col` IGNORE NULLS) OVER (ORDER BY `int64_col` ASC NULLS LAST ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `bfcol_1` FROM `bfcte_0` ) SELECT diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_first/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_last/out.sql similarity index 64% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_first/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_last/out.sql index 40c9e6ddd8..7d3ddd46d9 100644 --- a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_first/out.sql +++ b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_last/out.sql @@ -8,10 +8,7 @@ WITH `bfcte_0` AS ( CASE WHEN `int64_col` IS NULL THEN NULL - ELSE FIRST_VALUE(`int64_col`) OVER ( - ORDER BY `int64_col` DESC - ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING - ) + ELSE LAST_VALUE(`int64_col`) OVER (ORDER BY `int64_col` DESC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) END AS `bfcol_1` FROM `bfcte_0` ) diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_first_non_null/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_last_non_null/out.sql similarity index 53% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_first_non_null/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_last_non_null/out.sql index 2ef7b7151e..0fa48b68a2 100644 --- a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_first_non_null/out.sql +++ b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_last_non_null/out.sql @@ -5,10 +5,7 @@ WITH `bfcte_0` AS ( ), `bfcte_1` AS ( SELECT *, - FIRST_VALUE(`int64_col` IGNORE NULLS) OVER ( - ORDER BY `int64_col` ASC NULLS LAST - ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING - ) AS `bfcol_1` + LAST_VALUE(`int64_col` IGNORE NULLS) OVER (ORDER BY `int64_col` ASC NULLS LAST ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS `bfcol_1` FROM `bfcte_0` ) SELECT diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_max/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_max/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_max/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_max/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_max/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_max/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_max/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_max/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_max/window_partition_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_max/window_partition_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_max/window_partition_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_max/window_partition_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_mean/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_mean/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_mean/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_mean/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_mean/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_mean/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_mean/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_mean/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_mean/window_partition_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_mean/window_partition_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_mean/window_partition_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_mean/window_partition_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_median/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_median/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_median/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_median/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_min/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_min/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_min/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_min/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_min/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_min/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_min/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_min/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_min/window_partition_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_min/window_partition_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_min/window_partition_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_min/window_partition_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_pop_var/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_pop_var/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_pop_var/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_pop_var/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_pop_var/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_pop_var/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_pop_var/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_pop_var/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_quantile/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_quantile/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_quantile/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_quantile/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_rank/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_rank/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_rank/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_rank/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_shift/lag.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_shift/lag.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_shift/lag.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_shift/lag.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_shift/lead.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_shift/lead.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_shift/lead.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_shift/lead.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_shift/noop.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_shift/noop.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_shift/noop.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_shift/noop.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_size_unary/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_size_unary/out.sql similarity index 93% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_size_unary/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_size_unary/out.sql index fffb4831b9..bc83bcf1fb 100644 --- a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_size_unary/out.sql +++ b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_size_unary/out.sql @@ -9,4 +9,4 @@ WITH `bfcte_0` AS ( ) SELECT `bfcol_1` AS `float64_col` -FROM `bfcte_1` \ No newline at end of file +FROM `bfcte_1` diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_std/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_std/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_std/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_std/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_std/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_std/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_std/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_std/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_sum/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_sum/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_sum/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_sum/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_sum/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_sum/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_sum/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_sum/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_sum/window_partition_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_sum/window_partition_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_sum/window_partition_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_sum/window_partition_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_time_series_diff/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_time_series_diff/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_time_series_diff/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_time_series_diff/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_var/out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_var/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_var/out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_var/out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_var/window_out.sql b/tests/snapshot/aggregations/snapshots/test_unary_compiler/test_var/window_out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/snapshots/test_unary_compiler/test_var/window_out.sql rename to tests/snapshot/aggregations/snapshots/test_unary_compiler/test_var/window_out.sql diff --git a/tests/unit/core/compile/sqlglot/aggregations/test_binary_compiler.py b/tests/snapshot/aggregations/test_binary_compiler.py similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/test_binary_compiler.py rename to tests/snapshot/aggregations/test_binary_compiler.py diff --git a/tests/unit/core/compile/sqlglot/aggregations/test_nullary_compiler.py b/tests/snapshot/aggregations/test_nullary_compiler.py similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/test_nullary_compiler.py rename to tests/snapshot/aggregations/test_nullary_compiler.py diff --git a/tests/unit/core/compile/sqlglot/aggregations/test_op_registration.py b/tests/snapshot/aggregations/test_op_registration.py similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/test_op_registration.py rename to tests/snapshot/aggregations/test_op_registration.py diff --git a/tests/unit/core/compile/sqlglot/aggregations/test_ordered_unary_compiler.py b/tests/snapshot/aggregations/test_ordered_unary_compiler.py similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/test_ordered_unary_compiler.py rename to tests/snapshot/aggregations/test_ordered_unary_compiler.py diff --git a/tests/unit/core/compile/sqlglot/aggregations/test_unary_compiler.py b/tests/snapshot/aggregations/test_unary_compiler.py similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/test_unary_compiler.py rename to tests/snapshot/aggregations/test_unary_compiler.py diff --git a/tests/unit/core/compile/sqlglot/aggregations/test_windows.py b/tests/snapshot/aggregations/test_windows.py similarity index 100% rename from tests/unit/core/compile/sqlglot/aggregations/test_windows.py rename to tests/snapshot/aggregations/test_windows.py diff --git a/tests/unit/core/compile/sqlglot/conftest.py b/tests/snapshot/conftest.py similarity index 100% rename from tests/unit/core/compile/sqlglot/conftest.py rename to tests/snapshot/conftest.py diff --git a/tests/unit/core/compile/sqlglot/expressions/__init__.py b/tests/snapshot/expressions/__init__.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/__init__.py rename to tests/snapshot/expressions/__init__.py diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_classify/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_classify/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_classify/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_classify/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_bool/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_bool/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_bool/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_bool/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_bool_with_model_param/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_bool_with_model_param/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_bool_with_model_param/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_bool_with_model_param/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_double/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_double/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_double/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_double/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_double_with_model_param/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_double_with_model_param/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_double_with_model_param/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_double_with_model_param/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_int/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_int/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_int/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_int/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_int_with_model_param/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_int_with_model_param/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_int_with_model_param/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_int_with_model_param/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_with_model_param/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_with_model_param/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_with_model_param/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_with_model_param/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_with_output_schema/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_with_output_schema/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_generate_with_output_schema/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_generate_with_output_schema/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_if/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_if/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_if/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_if/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_score/out.sql b/tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_score/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_ai_ops/test_ai_score/out.sql rename to tests/snapshot/expressions/snapshots/test_ai_ops/test_ai_score/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_index/out.sql b/tests/snapshot/expressions/snapshots/test_array_ops/test_array_index/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_index/out.sql rename to tests/snapshot/expressions/snapshots/test_array_ops/test_array_index/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_reduce_op/out.sql b/tests/snapshot/expressions/snapshots/test_array_ops/test_array_reduce_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_reduce_op/out.sql rename to tests/snapshot/expressions/snapshots/test_array_ops/test_array_reduce_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_slice_with_only_start/out.sql b/tests/snapshot/expressions/snapshots/test_array_ops/test_array_slice_with_only_start/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_slice_with_only_start/out.sql rename to tests/snapshot/expressions/snapshots/test_array_ops/test_array_slice_with_only_start/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_slice_with_start_and_stop/out.sql b/tests/snapshot/expressions/snapshots/test_array_ops/test_array_slice_with_start_and_stop/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_slice_with_start_and_stop/out.sql rename to tests/snapshot/expressions/snapshots/test_array_ops/test_array_slice_with_start_and_stop/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_to_string/out.sql b/tests/snapshot/expressions/snapshots/test_array_ops/test_array_to_string/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_array_to_string/out.sql rename to tests/snapshot/expressions/snapshots/test_array_ops/test_array_to_string/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_to_array_op/out.sql b/tests/snapshot/expressions/snapshots/test_array_ops/test_to_array_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_array_ops/test_to_array_op/out.sql rename to tests/snapshot/expressions/snapshots/test_array_ops/test_to_array_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_blob_ops/test_obj_fetch_metadata/out.sql b/tests/snapshot/expressions/snapshots/test_blob_ops/test_obj_fetch_metadata/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_blob_ops/test_obj_fetch_metadata/out.sql rename to tests/snapshot/expressions/snapshots/test_blob_ops/test_obj_fetch_metadata/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_blob_ops/test_obj_get_access_url/out.sql b/tests/snapshot/expressions/snapshots/test_blob_ops/test_obj_get_access_url/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_blob_ops/test_obj_get_access_url/out.sql rename to tests/snapshot/expressions/snapshots/test_blob_ops/test_obj_get_access_url/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_blob_ops/test_obj_make_ref/out.sql b/tests/snapshot/expressions/snapshots/test_blob_ops/test_obj_make_ref/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_blob_ops/test_obj_make_ref/out.sql rename to tests/snapshot/expressions/snapshots/test_blob_ops/test_obj_make_ref/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_bool_ops/test_and_op/out.sql b/tests/snapshot/expressions/snapshots/test_bool_ops/test_and_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_bool_ops/test_and_op/out.sql rename to tests/snapshot/expressions/snapshots/test_bool_ops/test_and_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_bool_ops/test_or_op/out.sql b/tests/snapshot/expressions/snapshots/test_bool_ops/test_or_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_bool_ops/test_or_op/out.sql rename to tests/snapshot/expressions/snapshots/test_bool_ops/test_or_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_bool_ops/test_xor_op/out.sql b/tests/snapshot/expressions/snapshots/test_bool_ops/test_xor_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_bool_ops/test_xor_op/out.sql rename to tests/snapshot/expressions/snapshots/test_bool_ops/test_xor_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_eq_null_match/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_eq_null_match/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_eq_null_match/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_eq_null_match/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_eq_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_eq_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_eq_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_eq_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_ge_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_ge_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_ge_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_ge_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_gt_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_gt_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_gt_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_gt_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_is_in/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_is_in/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_is_in/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_is_in/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_le_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_le_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_le_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_le_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_lt_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_lt_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_lt_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_lt_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_maximum_op/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_maximum_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_maximum_op/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_maximum_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_minimum_op/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_minimum_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_minimum_op/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_minimum_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_ne_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_comparison_ops/test_ne_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_comparison_ops/test_ne_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_comparison_ops/test_ne_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_add_timedelta/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_add_timedelta/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_add_timedelta/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_add_timedelta/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_date/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_date/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_date/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_date/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_day/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_day/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_day/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_day/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_dayofweek/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_dayofweek/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_dayofweek/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_dayofweek/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_dayofyear/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_dayofyear/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_dayofyear/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_dayofyear/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_floor_dt/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_floor_dt/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_floor_dt/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_floor_dt/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_hour/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_hour/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_hour/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_hour/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_iso_day/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_iso_day/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_iso_day/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_iso_day/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_iso_week/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_iso_week/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_iso_week/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_iso_week/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_iso_year/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_iso_year/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_iso_year/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_iso_year/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_minute/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_minute/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_minute/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_minute/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_month/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_month/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_month/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_month/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_normalize/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_normalize/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_normalize/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_normalize/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_quarter/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_quarter/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_quarter/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_quarter/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_second/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_second/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_second/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_second/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_strftime/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_strftime/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_strftime/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_strftime/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_sub_timedelta/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_sub_timedelta/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_sub_timedelta/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_sub_timedelta/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_time/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_time/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_time/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_time/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_to_datetime/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_to_datetime/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_to_datetime/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_to_datetime/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_to_timestamp/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_to_timestamp/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_to_timestamp/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_to_timestamp/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_unix_micros/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_unix_micros/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_unix_micros/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_unix_micros/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_unix_millis/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_unix_millis/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_unix_millis/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_unix_millis/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_unix_seconds/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_unix_seconds/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_unix_seconds/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_unix_seconds/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_year/out.sql b/tests/snapshot/expressions/snapshots/test_datetime_ops/test_year/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_datetime_ops/test_year/out.sql rename to tests/snapshot/expressions/snapshots/test_datetime_ops/test_year/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_bool/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_bool/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_bool/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_bool/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_float/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_float/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_float/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_float/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_from_json/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_from_json/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_from_json/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_from_json/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_int/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_int/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_int/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_int/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_json/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_json/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_json/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_json/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_string/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_string/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_string/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_string/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_time_like/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_time_like/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_astype_time_like/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_astype_time_like/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_case_when_op/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_case_when_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_case_when_op/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_case_when_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_clip/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_clip/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_clip/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_clip/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_coalesce/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_coalesce/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_coalesce/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_coalesce/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_fillna/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_fillna/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_fillna/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_fillna/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_hash/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_hash/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_hash/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_hash/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_invert/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_invert/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_invert/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_invert/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_isnull/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_isnull/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_isnull/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_isnull/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_map/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_map/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_map/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_map/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_notnull/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_notnull/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_notnull/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_notnull/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_row_key/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_row_key/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_row_key/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_row_key/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_sql_scalar_op/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_sql_scalar_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_sql_scalar_op/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_sql_scalar_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_where/out.sql b/tests/snapshot/expressions/snapshots/test_generic_ops/test_where/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_generic_ops/test_where/out.sql rename to tests/snapshot/expressions/snapshots/test_generic_ops/test_where/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_area/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_area/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_area/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_area/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_astext/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_astext/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_astext/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_astext/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_boundary/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_boundary/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_boundary/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_boundary/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_buffer/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_buffer/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_buffer/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_buffer/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_centroid/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_centroid/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_centroid/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_centroid/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_convexhull/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_convexhull/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_convexhull/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_convexhull/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_difference/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_difference/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_difference/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_difference/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_geogfromtext/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_geogfromtext/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_geogfromtext/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_geogfromtext/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_geogpoint/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_geogpoint/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_geogpoint/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_geogpoint/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_intersection/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_intersection/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_intersection/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_intersection/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_isclosed/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_isclosed/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_isclosed/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_isclosed/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_length/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_length/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_st_length/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_st_length/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_x/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_x/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_x/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_x/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_y/out.sql b/tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_y/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_geo_ops/test_geo_y/out.sql rename to tests/snapshot/expressions/snapshots/test_geo_ops/test_geo_y/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_extract/out.sql b/tests/snapshot/expressions/snapshots/test_json_ops/test_json_extract/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_extract/out.sql rename to tests/snapshot/expressions/snapshots/test_json_ops/test_json_extract/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_extract_array/out.sql b/tests/snapshot/expressions/snapshots/test_json_ops/test_json_extract_array/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_extract_array/out.sql rename to tests/snapshot/expressions/snapshots/test_json_ops/test_json_extract_array/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_extract_string_array/out.sql b/tests/snapshot/expressions/snapshots/test_json_ops/test_json_extract_string_array/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_extract_string_array/out.sql rename to tests/snapshot/expressions/snapshots/test_json_ops/test_json_extract_string_array/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_query/out.sql b/tests/snapshot/expressions/snapshots/test_json_ops/test_json_query/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_query/out.sql rename to tests/snapshot/expressions/snapshots/test_json_ops/test_json_query/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_query_array/out.sql b/tests/snapshot/expressions/snapshots/test_json_ops/test_json_query_array/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_query_array/out.sql rename to tests/snapshot/expressions/snapshots/test_json_ops/test_json_query_array/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_set/out.sql b/tests/snapshot/expressions/snapshots/test_json_ops/test_json_set/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_set/out.sql rename to tests/snapshot/expressions/snapshots/test_json_ops/test_json_set/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_value/out.sql b/tests/snapshot/expressions/snapshots/test_json_ops/test_json_value/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_json_value/out.sql rename to tests/snapshot/expressions/snapshots/test_json_ops/test_json_value/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_parse_json/out.sql b/tests/snapshot/expressions/snapshots/test_json_ops/test_parse_json/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_parse_json/out.sql rename to tests/snapshot/expressions/snapshots/test_json_ops/test_parse_json/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_to_json_string/out.sql b/tests/snapshot/expressions/snapshots/test_json_ops/test_to_json_string/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_json_ops/test_to_json_string/out.sql rename to tests/snapshot/expressions/snapshots/test_json_ops/test_to_json_string/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_abs/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_abs/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_abs/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_abs/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_add_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_add_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_add_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_add_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_add_string/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_add_string/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_add_string/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_add_string/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_add_timedelta/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_add_timedelta/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_add_timedelta/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_add_timedelta/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arccos/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_arccos/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arccos/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_arccos/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arccosh/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_arccosh/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arccosh/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_arccosh/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arcsin/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_arcsin/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arcsin/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_arcsin/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arcsinh/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_arcsinh/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arcsinh/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_arcsinh/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arctan/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_arctan/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arctan/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_arctan/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arctan2/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_arctan2/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arctan2/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_arctan2/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arctanh/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_arctanh/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_arctanh/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_arctanh/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_ceil/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_ceil/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_ceil/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_ceil/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_cos/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_cos/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_cos/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_cos/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_cosh/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_cosh/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_cosh/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_cosh/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_cosine_distance/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_cosine_distance/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_cosine_distance/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_cosine_distance/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_div_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_div_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_div_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_div_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_div_timedelta/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_div_timedelta/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_div_timedelta/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_div_timedelta/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_euclidean_distance/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_euclidean_distance/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_euclidean_distance/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_euclidean_distance/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_exp/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_exp/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_exp/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_exp/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_expm1/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_expm1/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_expm1/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_expm1/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_floor/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_floor/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_floor/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_floor/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_floordiv_timedelta/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_floordiv_timedelta/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_floordiv_timedelta/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_floordiv_timedelta/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_ln/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_ln/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_ln/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_ln/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_log10/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_log10/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_log10/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_log10/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_log1p/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_log1p/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_log1p/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_log1p/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_manhattan_distance/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_manhattan_distance/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_manhattan_distance/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_manhattan_distance/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_mod_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_mod_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_mod_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_mod_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_mul_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_mul_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_mul_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_mul_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_mul_timedelta/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_mul_timedelta/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_mul_timedelta/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_mul_timedelta/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_neg/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_neg/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_neg/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_neg/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_pos/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_pos/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_pos/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_pos/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_round/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_round/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_round/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_round/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sin/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_sin/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sin/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_sin/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sinh/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_sinh/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sinh/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_sinh/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sqrt/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_sqrt/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sqrt/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_sqrt/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sub_numeric/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_sub_numeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sub_numeric/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_sub_numeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sub_timedelta/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_sub_timedelta/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_sub_timedelta/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_sub_timedelta/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_tan/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_tan/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_tan/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_tan/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_tanh/out.sql b/tests/snapshot/expressions/snapshots/test_numeric_ops/test_tanh/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_numeric_ops/test_tanh/out.sql rename to tests/snapshot/expressions/snapshots/test_numeric_ops/test_tanh/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_add_string/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_add_string/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_add_string/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_add_string/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_capitalize/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_capitalize/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_capitalize/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_capitalize/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_endswith/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_endswith/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_endswith/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_endswith/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isalnum/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_isalnum/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isalnum/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_isalnum/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isalpha/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_isalpha/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isalpha/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_isalpha/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isdecimal/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_isdecimal/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isdecimal/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_isdecimal/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isdigit/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_isdigit/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isdigit/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_isdigit/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_islower/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_islower/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_islower/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_islower/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isnumeric/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_isnumeric/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isnumeric/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_isnumeric/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isspace/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_isspace/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isspace/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_isspace/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isupper/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_isupper/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_isupper/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_isupper/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_len/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_len/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_len/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_len/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_lower/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_lower/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_lower/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_lower/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_lstrip/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_lstrip/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_lstrip/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_lstrip/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_regex_replace_str/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_regex_replace_str/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_regex_replace_str/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_regex_replace_str/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_replace_str/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_replace_str/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_replace_str/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_replace_str/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_reverse/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_reverse/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_reverse/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_reverse/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_rstrip/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_rstrip/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_rstrip/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_rstrip/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_startswith/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_startswith/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_startswith/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_startswith/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_contains/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_str_contains/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_contains/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_str_contains/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_contains_regex/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_str_contains_regex/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_contains_regex/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_str_contains_regex/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_extract/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_str_extract/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_extract/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_str_extract/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_find/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_str_find/out.sql similarity index 55% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_find/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_str_find/out.sql index 82847d5e22..4927e814a3 100644 --- a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_find/out.sql +++ b/tests/snapshot/expressions/snapshots/test_string_ops/test_str_find/out.sql @@ -5,10 +5,10 @@ WITH `bfcte_0` AS ( ), `bfcte_1` AS ( SELECT *, - INSTR(`string_col`, 'e', 1) - 1 AS `bfcol_1`, - INSTR(`string_col`, 'e', 3) - 1 AS `bfcol_2`, - INSTR(SUBSTRING(`string_col`, 1, 5), 'e') - 1 AS `bfcol_3`, - INSTR(SUBSTRING(`string_col`, 3, 3), 'e') - 1 AS `bfcol_4` + STRPOS(`string_col`, 'e') - 1 AS `bfcol_1`, + STRPOS(`string_col`, 'e') - 1 AS `bfcol_2`, + STRPOS(SUBSTRING(`string_col`, 1, 5), 'e') - 1 AS `bfcol_3`, + STRPOS(SUBSTRING(`string_col`, 3, 3), 'e') - 1 AS `bfcol_4` FROM `bfcte_0` ) SELECT diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_get/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_str_get/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_get/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_str_get/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_pad/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_str_pad/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_pad/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_str_pad/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_repeat/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_str_repeat/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_repeat/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_str_repeat/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_slice/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_str_slice/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_str_slice/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_str_slice/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_strconcat/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_strconcat/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_strconcat/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_strconcat/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_string_split/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_string_split/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_string_split/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_string_split/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_strip/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_strip/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_strip/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_strip/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_upper/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_upper/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_upper/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_upper/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_zfill/out.sql b/tests/snapshot/expressions/snapshots/test_string_ops/test_zfill/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_zfill/out.sql rename to tests/snapshot/expressions/snapshots/test_string_ops/test_zfill/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_struct_ops/test_struct_field/out.sql b/tests/snapshot/expressions/snapshots/test_struct_ops/test_struct_field/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_struct_ops/test_struct_field/out.sql rename to tests/snapshot/expressions/snapshots/test_struct_ops/test_struct_field/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_struct_ops/test_struct_op/out.sql b/tests/snapshot/expressions/snapshots/test_struct_ops/test_struct_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_struct_ops/test_struct_op/out.sql rename to tests/snapshot/expressions/snapshots/test_struct_ops/test_struct_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_timedelta_ops/test_timedelta_floor/out.sql b/tests/snapshot/expressions/snapshots/test_timedelta_ops/test_timedelta_floor/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_timedelta_ops/test_timedelta_floor/out.sql rename to tests/snapshot/expressions/snapshots/test_timedelta_ops/test_timedelta_floor/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/snapshots/test_timedelta_ops/test_to_timedelta/out.sql b/tests/snapshot/expressions/snapshots/test_timedelta_ops/test_to_timedelta/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/snapshots/test_timedelta_ops/test_to_timedelta/out.sql rename to tests/snapshot/expressions/snapshots/test_timedelta_ops/test_to_timedelta/out.sql diff --git a/tests/unit/core/compile/sqlglot/expressions/test_ai_ops.py b/tests/snapshot/expressions/test_ai_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_ai_ops.py rename to tests/snapshot/expressions/test_ai_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_array_ops.py b/tests/snapshot/expressions/test_array_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_array_ops.py rename to tests/snapshot/expressions/test_array_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_blob_ops.py b/tests/snapshot/expressions/test_blob_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_blob_ops.py rename to tests/snapshot/expressions/test_blob_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_bool_ops.py b/tests/snapshot/expressions/test_bool_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_bool_ops.py rename to tests/snapshot/expressions/test_bool_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_comparison_ops.py b/tests/snapshot/expressions/test_comparison_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_comparison_ops.py rename to tests/snapshot/expressions/test_comparison_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_datetime_ops.py b/tests/snapshot/expressions/test_datetime_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_datetime_ops.py rename to tests/snapshot/expressions/test_datetime_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_generic_ops.py b/tests/snapshot/expressions/test_generic_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_generic_ops.py rename to tests/snapshot/expressions/test_generic_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_geo_ops.py b/tests/snapshot/expressions/test_geo_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_geo_ops.py rename to tests/snapshot/expressions/test_geo_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_json_ops.py b/tests/snapshot/expressions/test_json_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_json_ops.py rename to tests/snapshot/expressions/test_json_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_numeric_ops.py b/tests/snapshot/expressions/test_numeric_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_numeric_ops.py rename to tests/snapshot/expressions/test_numeric_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_string_ops.py b/tests/snapshot/expressions/test_string_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_string_ops.py rename to tests/snapshot/expressions/test_string_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_struct_ops.py b/tests/snapshot/expressions/test_struct_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_struct_ops.py rename to tests/snapshot/expressions/test_struct_ops.py diff --git a/tests/unit/core/compile/sqlglot/expressions/test_timedelta_ops.py b/tests/snapshot/expressions/test_timedelta_ops.py similarity index 100% rename from tests/unit/core/compile/sqlglot/expressions/test_timedelta_ops.py rename to tests/snapshot/expressions/test_timedelta_ops.py diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_aggregate/test_compile_aggregate/out.sql b/tests/snapshot/snapshots/test_compile_aggregate/test_compile_aggregate/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_aggregate/test_compile_aggregate/out.sql rename to tests/snapshot/snapshots/test_compile_aggregate/test_compile_aggregate/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_aggregate/test_compile_aggregate_wo_dropna/out.sql b/tests/snapshot/snapshots/test_compile_aggregate/test_compile_aggregate_wo_dropna/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_aggregate/test_compile_aggregate_wo_dropna/out.sql rename to tests/snapshot/snapshots/test_compile_aggregate/test_compile_aggregate_wo_dropna/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_concat/test_compile_concat/out.sql b/tests/snapshot/snapshots/test_compile_concat/test_compile_concat/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_concat/test_compile_concat/out.sql rename to tests/snapshot/snapshots/test_compile_concat/test_compile_concat/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_concat/test_compile_concat_filter_sorted/out.sql b/tests/snapshot/snapshots/test_compile_concat/test_compile_concat_filter_sorted/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_concat/test_compile_concat_filter_sorted/out.sql rename to tests/snapshot/snapshots/test_compile_concat/test_compile_concat_filter_sorted/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_explode/test_compile_explode_dataframe/out.sql b/tests/snapshot/snapshots/test_compile_explode/test_compile_explode_dataframe/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_explode/test_compile_explode_dataframe/out.sql rename to tests/snapshot/snapshots/test_compile_explode/test_compile_explode_dataframe/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_explode/test_compile_explode_series/out.sql b/tests/snapshot/snapshots/test_compile_explode/test_compile_explode_series/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_explode/test_compile_explode_series/out.sql rename to tests/snapshot/snapshots/test_compile_explode/test_compile_explode_series/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_filter/test_compile_filter/out.sql b/tests/snapshot/snapshots/test_compile_filter/test_compile_filter/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_filter/test_compile_filter/out.sql rename to tests/snapshot/snapshots/test_compile_filter/test_compile_filter/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_geo/test_st_regionstats/out.sql b/tests/snapshot/snapshots/test_compile_geo/test_st_regionstats/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_geo/test_st_regionstats/out.sql rename to tests/snapshot/snapshots/test_compile_geo/test_st_regionstats/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_geo/test_st_regionstats_without_optional_args/out.sql b/tests/snapshot/snapshots/test_compile_geo/test_st_regionstats_without_optional_args/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_geo/test_st_regionstats_without_optional_args/out.sql rename to tests/snapshot/snapshots/test_compile_geo/test_st_regionstats_without_optional_args/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_geo/test_st_simplify/out.sql b/tests/snapshot/snapshots/test_compile_geo/test_st_simplify/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_geo/test_st_simplify/out.sql rename to tests/snapshot/snapshots/test_compile_geo/test_st_simplify/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_isin/test_compile_isin/out.sql b/tests/snapshot/snapshots/test_compile_isin/test_compile_isin/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_isin/test_compile_isin/out.sql rename to tests/snapshot/snapshots/test_compile_isin/test_compile_isin/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_isin/test_compile_isin_not_nullable/out.sql b/tests/snapshot/snapshots/test_compile_isin/test_compile_isin_not_nullable/out.sql similarity index 88% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_isin/test_compile_isin_not_nullable/out.sql rename to tests/snapshot/snapshots/test_compile_isin/test_compile_isin_not_nullable/out.sql index 8089c5b462..1246dc44a6 100644 --- a/tests/unit/core/compile/sqlglot/snapshots/test_compile_isin/test_compile_isin_not_nullable/out.sql +++ b/tests/snapshot/snapshots/test_compile_isin/test_compile_isin_not_nullable/out.sql @@ -22,9 +22,9 @@ WITH `bfcte_1` AS ( SELECT `bfcte_3`.*, `bfcte_3`.`bfcol_3` IN (( - SELECT - `rowindex_2` AS `bfcol_4` - FROM `bfcte_2` + SELECT + `rowindex_2` AS `bfcol_4` + FROM `bfcte_2` )) AS `bfcol_5` FROM `bfcte_3` ) diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join/out.sql b/tests/snapshot/snapshots/test_compile_join/test_compile_join/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join/out.sql rename to tests/snapshot/snapshots/test_compile_join/test_compile_join/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/bool_col/out.sql b/tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/bool_col/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/bool_col/out.sql rename to tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/bool_col/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/float64_col/out.sql b/tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/float64_col/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/float64_col/out.sql rename to tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/float64_col/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/int64_col/out.sql b/tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/int64_col/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/int64_col/out.sql rename to tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/int64_col/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/numeric_col/out.sql b/tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/numeric_col/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/numeric_col/out.sql rename to tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/numeric_col/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/string_col/out.sql b/tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/string_col/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/string_col/out.sql rename to tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/string_col/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/time_col/out.sql b/tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/time_col/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_join/test_compile_join_w_on/time_col/out.sql rename to tests/snapshot/snapshots/test_compile_join/test_compile_join_w_on/time_col/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_projection/test_compile_projection/out.sql b/tests/snapshot/snapshots/test_compile_projection/test_compile_projection/out.sql similarity index 97% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_projection/test_compile_projection/out.sql rename to tests/snapshot/snapshots/test_compile_projection/test_compile_projection/out.sql index 3f819800e5..765147ef08 100644 --- a/tests/unit/core/compile/sqlglot/snapshots/test_compile_projection/test_compile_projection/out.sql +++ b/tests/snapshot/snapshots/test_compile_projection/test_compile_projection/out.sql @@ -23,4 +23,4 @@ WITH `bfcte_0` AS ( SELECT `bfcol_6` AS `rowindex`, `bfcol_7` AS `int64_col` -FROM `bfcte_3` \ No newline at end of file +FROM `bfcte_3` diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_random_sample/test_compile_random_sample/out.sql b/tests/snapshot/snapshots/test_compile_random_sample/test_compile_random_sample/out.sql similarity index 99% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_random_sample/test_compile_random_sample/out.sql rename to tests/snapshot/snapshots/test_compile_random_sample/test_compile_random_sample/out.sql index aae34716d8..ab5a37430a 100644 --- a/tests/unit/core/compile/sqlglot/snapshots/test_compile_random_sample/test_compile_random_sample/out.sql +++ b/tests/snapshot/snapshots/test_compile_random_sample/test_compile_random_sample/out.sql @@ -181,4 +181,4 @@ SELECT `bfcol_14` AS `duration_col` FROM `bfcte_1` ORDER BY - `bfcol_15` ASC NULLS LAST \ No newline at end of file + `bfcol_15` ASC NULLS LAST diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal/out.sql b/tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal/out.sql similarity index 99% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal/out.sql rename to tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal/out.sql index 2b080b0b7c..5cc6c4c909 100644 --- a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal/out.sql +++ b/tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal/out.sql @@ -184,4 +184,4 @@ SELECT `bfcol_15` AS `duration_col` FROM `bfcte_0` ORDER BY - `bfcol_16` ASC NULLS LAST \ No newline at end of file + `bfcol_16` ASC NULLS LAST diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal_w_json_df/out.sql b/tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal_w_json_df/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal_w_json_df/out.sql rename to tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal_w_json_df/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal_w_lists_df/out.sql b/tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal_w_lists_df/out.sql similarity index 97% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal_w_lists_df/out.sql rename to tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal_w_lists_df/out.sql index 923476aafd..012c3038b2 100644 --- a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal_w_lists_df/out.sql +++ b/tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal_w_lists_df/out.sql @@ -44,4 +44,4 @@ SELECT `bfcol_7` AS `string_list_col` FROM `bfcte_0` ORDER BY - `bfcol_8` ASC NULLS LAST \ No newline at end of file + `bfcol_8` ASC NULLS LAST diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal_w_structs_df/out.sql b/tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal_w_structs_df/out.sql similarity index 95% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal_w_structs_df/out.sql rename to tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal_w_structs_df/out.sql index 7ded9cf5ff..4c2174641a 100644 --- a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readlocal/test_compile_readlocal_w_structs_df/out.sql +++ b/tests/snapshot/snapshots/test_compile_readlocal/test_compile_readlocal_w_structs_df/out.sql @@ -24,4 +24,4 @@ SELECT `bfcol_1` AS `person` FROM `bfcte_0` ORDER BY - `bfcol_2` ASC NULLS LAST \ No newline at end of file + `bfcol_2` ASC NULLS LAST diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable/out.sql b/tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable/out.sql rename to tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_json_types/out.sql b/tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_json_types/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_json_types/out.sql rename to tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_json_types/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_limit/out.sql b/tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_limit/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_limit/out.sql rename to tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_limit/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_nested_structs_types/out.sql b/tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_nested_structs_types/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_nested_structs_types/out.sql rename to tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_nested_structs_types/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_ordering/out.sql b/tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_ordering/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_ordering/out.sql rename to tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_ordering/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_repeated_types/out.sql b/tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_repeated_types/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_repeated_types/out.sql rename to tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_repeated_types/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_system_time/out.sql b/tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_system_time/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_readtable/test_compile_readtable_w_system_time/out.sql rename to tests/snapshot/snapshots/test_compile_readtable/test_compile_readtable_w_system_time/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_groupby_rolling/out.sql b/tests/snapshot/snapshots/test_compile_window/test_compile_window_w_groupby_rolling/out.sql similarity index 52% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_groupby_rolling/out.sql rename to tests/snapshot/snapshots/test_compile_window/test_compile_window_w_groupby_rolling/out.sql index 11e3f4773e..44a0c9ec11 100644 --- a/tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_groupby_rolling/out.sql +++ b/tests/snapshot/snapshots/test_compile_window/test_compile_window_w_groupby_rolling/out.sql @@ -22,18 +22,10 @@ WITH `bfcte_0` AS ( SELECT *, CASE - WHEN SUM(CAST(NOT `bfcol_7` IS NULL AS INT64)) OVER ( - PARTITION BY `bfcol_9` - ORDER BY `bfcol_9` ASC NULLS LAST, `rowindex` ASC NULLS LAST - ROWS BETWEEN 3 PRECEDING AND CURRENT ROW - ) < 3 + WHEN SUM(CAST(NOT `bfcol_7` IS NULL AS INT64)) OVER (PARTITION BY `bfcol_9` ORDER BY `bfcol_9` ASC NULLS LAST, `rowindex` ASC NULLS LAST ROWS BETWEEN 3 PRECEDING AND CURRENT ROW) < 3 THEN NULL ELSE COALESCE( - SUM(CAST(`bfcol_7` AS INT64)) OVER ( - PARTITION BY `bfcol_9` - ORDER BY `bfcol_9` ASC NULLS LAST, `rowindex` ASC NULLS LAST - ROWS BETWEEN 3 PRECEDING AND CURRENT ROW - ), + SUM(CAST(`bfcol_7` AS INT64)) OVER (PARTITION BY `bfcol_9` ORDER BY `bfcol_9` ASC NULLS LAST, `rowindex` ASC NULLS LAST ROWS BETWEEN 3 PRECEDING AND CURRENT ROW), 0 ) END AS `bfcol_15` @@ -48,18 +40,10 @@ WITH `bfcte_0` AS ( SELECT *, CASE - WHEN SUM(CAST(NOT `bfcol_8` IS NULL AS INT64)) OVER ( - PARTITION BY `bfcol_9` - ORDER BY `bfcol_9` ASC NULLS LAST, `rowindex` ASC NULLS LAST - ROWS BETWEEN 3 PRECEDING AND CURRENT ROW - ) < 3 + WHEN SUM(CAST(NOT `bfcol_8` IS NULL AS INT64)) OVER (PARTITION BY `bfcol_9` ORDER BY `bfcol_9` ASC NULLS LAST, `rowindex` ASC NULLS LAST ROWS BETWEEN 3 PRECEDING AND CURRENT ROW) < 3 THEN NULL ELSE COALESCE( - SUM(`bfcol_8`) OVER ( - PARTITION BY `bfcol_9` - ORDER BY `bfcol_9` ASC NULLS LAST, `rowindex` ASC NULLS LAST - ROWS BETWEEN 3 PRECEDING AND CURRENT ROW - ), + SUM(`bfcol_8`) OVER (PARTITION BY `bfcol_9` ORDER BY `bfcol_9` ASC NULLS LAST, `rowindex` ASC NULLS LAST ROWS BETWEEN 3 PRECEDING AND CURRENT ROW), 0 ) END AS `bfcol_21` diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_range_rolling/out.sql b/tests/snapshot/snapshots/test_compile_window/test_compile_window_w_range_rolling/out.sql similarity index 82% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_range_rolling/out.sql rename to tests/snapshot/snapshots/test_compile_window/test_compile_window_w_range_rolling/out.sql index 581c81c6b4..d2c7e338bc 100644 --- a/tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_range_rolling/out.sql +++ b/tests/snapshot/snapshots/test_compile_window/test_compile_window_w_range_rolling/out.sql @@ -6,16 +6,10 @@ WITH `bfcte_0` AS ( SELECT *, CASE - WHEN SUM(CAST(NOT `bfcol_1` IS NULL AS INT64)) OVER ( - ORDER BY UNIX_MICROS(`bfcol_0`) ASC NULLS LAST - RANGE BETWEEN 2999999 PRECEDING AND CURRENT ROW - ) < 1 + WHEN SUM(CAST(NOT `bfcol_1` IS NULL AS INT64)) OVER (ORDER BY UNIX_MICROS(`bfcol_0`) ASC NULLS LAST RANGE BETWEEN 2999999 PRECEDING AND CURRENT ROW) < 1 THEN NULL ELSE COALESCE( - SUM(`bfcol_1`) OVER ( - ORDER BY UNIX_MICROS(`bfcol_0`) ASC NULLS LAST - RANGE BETWEEN 2999999 PRECEDING AND CURRENT ROW - ), + SUM(`bfcol_1`) OVER (ORDER BY UNIX_MICROS(`bfcol_0`) ASC NULLS LAST RANGE BETWEEN 2999999 PRECEDING AND CURRENT ROW), 0 ) END AS `bfcol_6` diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_skips_nulls_op/out.sql b/tests/snapshot/snapshots/test_compile_window/test_compile_window_w_skips_nulls_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_w_skips_nulls_op/out.sql rename to tests/snapshot/snapshots/test_compile_window/test_compile_window_w_skips_nulls_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_wo_skips_nulls_op/out.sql b/tests/snapshot/snapshots/test_compile_window/test_compile_window_wo_skips_nulls_op/out.sql similarity index 100% rename from tests/unit/core/compile/sqlglot/snapshots/test_compile_window/test_compile_window_wo_skips_nulls_op/out.sql rename to tests/snapshot/snapshots/test_compile_window/test_compile_window_wo_skips_nulls_op/out.sql diff --git a/tests/unit/core/compile/sqlglot/test_compile_aggregate.py b/tests/snapshot/test_compile_aggregate.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_aggregate.py rename to tests/snapshot/test_compile_aggregate.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_concat.py b/tests/snapshot/test_compile_concat.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_concat.py rename to tests/snapshot/test_compile_concat.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_explode.py b/tests/snapshot/test_compile_explode.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_explode.py rename to tests/snapshot/test_compile_explode.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_filter.py b/tests/snapshot/test_compile_filter.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_filter.py rename to tests/snapshot/test_compile_filter.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_geo.py b/tests/snapshot/test_compile_geo.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_geo.py rename to tests/snapshot/test_compile_geo.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_isin.py b/tests/snapshot/test_compile_isin.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_isin.py rename to tests/snapshot/test_compile_isin.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_join.py b/tests/snapshot/test_compile_join.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_join.py rename to tests/snapshot/test_compile_join.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_random_sample.py b/tests/snapshot/test_compile_random_sample.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_random_sample.py rename to tests/snapshot/test_compile_random_sample.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_readlocal.py b/tests/snapshot/test_compile_readlocal.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_readlocal.py rename to tests/snapshot/test_compile_readlocal.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_readtable.py b/tests/snapshot/test_compile_readtable.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_readtable.py rename to tests/snapshot/test_compile_readtable.py diff --git a/tests/unit/core/compile/sqlglot/test_compile_window.py b/tests/snapshot/test_compile_window.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_compile_window.py rename to tests/snapshot/test_compile_window.py diff --git a/tests/unit/core/compile/sqlglot/test_scalar_compiler.py b/tests/snapshot/test_scalar_compiler.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_scalar_compiler.py rename to tests/snapshot/test_scalar_compiler.py diff --git a/tests/unit/core/compile/sqlglot/test_sqlglot_types.py b/tests/snapshot/test_sqlglot_types.py similarity index 100% rename from tests/unit/core/compile/sqlglot/test_sqlglot_types.py rename to tests/snapshot/test_sqlglot_types.py