-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the semicolon semantics for indexes while respecting other bug fi…
…x. (#97) Co-authored-by: Mila Page <[email protected]>
- Loading branch information
1 parent
862e8e9
commit e23d0a7
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 tests.functional.utils 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() |