Skip to content

Commit 0cbb6a5

Browse files
committed
Support quoting.snowflake_ignore_case
Closes #11882.
1 parent 9bc7333 commit 0cbb6a5

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Features
2+
body: No-op when project-level `quoting.snowflake_ignore_case` is set.
3+
time: 2025-08-21T09:25:32.049328307+02:00
4+
custom:
5+
Author: aksestok
6+
Issue: "11882"

core/dbt/contracts/project.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class Quoting(dbtClassMixin, Mergeable):
3838
database: Optional[bool] = None
3939
project: Optional[bool] = None
4040
identifier: Optional[bool] = None
41+
snowflake_ignore_case: Optional[bool] = None
4142

4243

4344
@dataclass
@@ -396,6 +397,7 @@ class ConfiguredQuoting(Quoting):
396397
schema: bool = True
397398
database: Optional[bool] = None
398399
project: Optional[bool] = None
400+
snowflake_ignore_case: Optional[bool] = None
399401

400402

401403
@dataclass

core/dbt/include/jsonschemas/project/0.0.110.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,12 @@
514514
"boolean",
515515
"null"
516516
]
517+
},
518+
"snowflake_ignore_case": {
519+
"type": [
520+
"boolean",
521+
"null"
522+
]
517523
}
518524
},
519525
"additionalProperties": false

tests/unit/config/test_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_all_overrides(self):
153153
"asset-paths": ["other-assets"],
154154
"clean-targets": ["another-target"],
155155
"packages-install-path": "other-dbt_packages",
156-
"quoting": {"identifier": False},
156+
"quoting": {"identifier": False, "snowflake_ignore_case": True},
157157
"models": {
158158
"pre-hook": ["{{ logging.log_model_start_event() }}"],
159159
"post-hook": ["{{ logging.log_model_end_event() }}"],
@@ -214,7 +214,7 @@ def test_all_overrides(self):
214214
self.assertEqual(project.asset_paths, ["other-assets"])
215215
self.assertEqual(project.clean_targets, ["another-target"])
216216
self.assertEqual(project.packages_install_path, "other-dbt_packages")
217-
self.assertEqual(project.quoting, {"identifier": False})
217+
self.assertEqual(project.quoting, {"identifier": False, "snowflake_ignore_case": True})
218218
self.assertEqual(
219219
project.models,
220220
{

0 commit comments

Comments
 (0)