Skip to content

Commit

Permalink
Chore!: bump sqlglot to v25.10.0 (#2992)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesittas authored Aug 8, 2024
1 parent 6405aed commit e3b6fea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"requests",
"rich[jupyter]",
"ruamel.yaml",
"sqlglot[rs]~=25.8.1",
"sqlglot[rs]~=25.10.0",
],
extras_require={
"bigquery": [
Expand Down
2 changes: 1 addition & 1 deletion tests/core/engine_adapter/test_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def test_select_partitions_expr():
granularity="day",
database="{{ target.database }}",
)
== "SELECT MAX(PARSE_DATE('%Y%m%d', partition_id)) FROM `{{ target.database }}.{{ adapter.resolve_schema(this) }}.INFORMATION_SCHEMA.PARTITIONS` WHERE table_name = '{{ adapter.resolve_identifier(this) }}' AND NOT partition_id IS NULL AND partition_id <> '__NULL__'"
== "SELECT MAX(PARSE_DATE('%Y%m%d', partition_id)) FROM `{{ target.database }}`.`{{ adapter.resolve_schema(this) }}`.INFORMATION_SCHEMA.PARTITIONS WHERE table_name = '{{ adapter.resolve_identifier(this) }}' AND NOT partition_id IS NULL AND partition_id <> '__NULL__'"
)

assert (
Expand Down
2 changes: 1 addition & 1 deletion tests/dbt/test_transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ def test_dbt_max_partition(sushi_test_project: Project, assert_exp_eq, mocker: M
JINJA_STATEMENT_BEGIN;
{% if is_incremental() %}
DECLARE _dbt_max_partition DATETIME DEFAULT (
COALESCE((SELECT MAX(PARSE_DATETIME('%Y%m', partition_id)) FROM `{{ target.database }}.{{ adapter.resolve_schema(this) }}.INFORMATION_SCHEMA.PARTITIONS` WHERE table_name = '{{ adapter.resolve_identifier(this) }}' AND NOT partition_id IS NULL AND partition_id <> '__NULL__'), CAST('1970-01-01' AS DATETIME))
COALESCE((SELECT MAX(PARSE_DATETIME('%Y%m', partition_id)) FROM `{{ target.database }}`.`{{ adapter.resolve_schema(this) }}`.INFORMATION_SCHEMA.PARTITIONS WHERE table_name = '{{ adapter.resolve_identifier(this) }}' AND NOT partition_id IS NULL AND partition_id <> '__NULL__'), CAST('1970-01-01' AS DATETIME))
);
{% endif %}
JINJA_END;""".strip()
Expand Down

0 comments on commit e3b6fea

Please sign in to comment.