-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 1.7.latest] Fix the semicolon semantics for indexes while r…
…especting other bug fix (#10194) * backport postgres#97 * point to the correct reference for run_dbt --------- Co-authored-by: Gerda Shank <[email protected]>
- Loading branch information
1 parent
d0ddeea
commit 879ae14
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Fix the semicolon semantics for indexes while respecting other bug fix | ||
time: 2024-05-14T19:32:01.149383-07:00 | ||
custom: | ||
Author: versusfacit | ||
Issue: "85" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import pytest | ||
|
||
from dbt.tests.util import run_dbt | ||
|
||
|
||
REF_MULTIPLE_INDEX_MODEL = """ | ||
{{ | ||
config( | ||
materialized="materialized_view", | ||
indexes=[ | ||
{"columns": ["foo"], "type": "btree"}, | ||
{"columns": ["bar"], "type": "btree"}, | ||
], | ||
) | ||
}} | ||
SELECT 1 AS foo, 2 AS bar | ||
""" | ||
|
||
|
||
class TestUnrestrictedPackageAccess: | ||
@pytest.fixture(scope="class") | ||
def models(self): | ||
return {"index_test.sql": REF_MULTIPLE_INDEX_MODEL} | ||
|
||
def test_unrestricted_protected_ref(self, project): | ||
run_dbt() |