-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding table & incremental sql header model test * add validate-sql & null_compare tests * poetry updated & tox.ini list
- Loading branch information
Showing
7 changed files
with
321 additions
and
186 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 @@ | ||
{% macro exasol__validate_sql(sql) -%} | ||
{% call statement('validate_sql') -%} | ||
{{ sql }} limit 0 | ||
{% endcall %} | ||
{{ return(load_result('validate_sql')) }} | ||
{% endmacro %} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,12 @@ | ||
from dbt.tests.adapter.utils.test_null_compare import ( | ||
BaseMixedNullCompare, | ||
BaseNullCompare, | ||
) | ||
|
||
|
||
class TestExasolMixedNullCompare(BaseMixedNullCompare): | ||
pass | ||
|
||
|
||
class TestExasolNullCompareBaseNullCompare(BaseNullCompare): | ||
pass |
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,8 @@ | ||
from dbt.tests.adapter.basic.test_generic_tests import pytest | ||
from dbt.tests.adapter.utils.test_validate_sql import BaseValidateSqlMethod | ||
|
||
|
||
class TestExasolValidateSqlMethod(BaseValidateSqlMethod): | ||
@pytest.fixture(scope="class") | ||
def valid_sql(self) -> str: | ||
return "select 1 as column_name" |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
[tox] | ||
isolated_build = True | ||
env_list = py{38,39,310,311} | ||
env_list = | ||
py38 | ||
py39 | ||
py310 | ||
311 | ||
|
||
[testenv] | ||
passenv = * | ||
|