Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 2c77893

Browse files
Base 207/add test (#1266)
* Add test for upstream change. * Change database message. * Adjust test case to reflect new syntax scheme. --------- Co-authored-by: Mila Page <[email protected]> Co-authored-by: Mike Alfare <[email protected]>
1 parent 0627aa2 commit 2c77893

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tests/functional/adapter/dbt_show/test_dbt_show.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import pytest
2-
from dbt.tests.adapter.dbt_show.test_dbt_show import BaseShowSqlHeader, BaseShowLimit
2+
from dbt.tests.adapter.dbt_show.test_dbt_show import (
3+
BaseShowSqlHeader,
4+
BaseShowLimit,
5+
BaseShowDoesNotHandleDoubleLimit,
6+
)
37

48
from dbt.tests.util import run_dbt
59

@@ -20,8 +24,7 @@
2024
]
2125
)
2226
as v
23-
) as model_limit_subq
24-
limit 5
27+
)
2528
"""
2629

2730
model_with_null_json_struct = """
@@ -48,7 +51,11 @@ def models(self):
4851
}
4952

5053
def test_sql_header(self, project):
51-
run_dbt(["show", "--select", "json_struct_model"])
54+
run_dbt(["show", "--select", "json_struct_model", "-d"])
5255

5356
def test_show_with_null_json_struct(self, project):
5457
run_dbt(["show", "--select", "null_json_struct_model"])
58+
59+
60+
class TestBigQueryShowDoesNotHandleDoubleLimit(BaseShowDoesNotHandleDoubleLimit):
61+
DATABASE_ERROR_MESSAGE = "Syntax error: Expected end of input but got keyword LIMIT"

0 commit comments

Comments
 (0)