Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions .github/workflows/ci-integration-tests-csae.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,13 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt

- name: Prepare database
shell: bash
run: |
export PATH=$PATH:"/opt/teradata/client/17.20/bin"

cd md5_20080530/md5/src

# prepare bteq script

cat << EOF > /tmp/install_md5.bteq

.SET EXITONDELAY ON MAXREQTIME 20
.logon $DBT_TERADATA_SERVER_NAME/$DBT_TERADATA_USERNAME,$DBT_TERADATA_PASSWORD
CREATE DATABASE HASH_TEST AS PERMANENT = 60e6, SPOOL = 120e6;
Expand All @@ -85,7 +80,6 @@ jobs:
GRANT EXECUTE FUNCTION ON GLOBAL_FUNCTIONS TO PUBLIC WITH GRANT OPTION;
.logoff
EOF

bteq < /tmp/install_md5.bteq

cd ../../../tests/functional/adapter
Expand All @@ -112,7 +106,6 @@ jobs:
EOF

bteq < /tmp/create_procedure_in_ansi.bteq

env:
DBT_TERADATA_SERVER_NAME: ${{ steps.create-csae-environments.outputs.teradata-server-name }}
DBT_TERADATA_USERNAME: dbc
Expand All @@ -126,7 +119,7 @@ jobs:
export DBT_TEST_USER_1=test_grants_user1
export DBT_TEST_USER_2=test_grants_user2
export DBT_TEST_USER_3=test_grants_user3
pytest --cov=dbt -v -k "not TestCurrentTimestamp and not TestProcedureANSIInTERA and not TestProcedureTERAInTERA and not Test_query_band" tests/functional
pytest --cov=dbt -v -k "not TestCurrentTimestamp and not TestProcedureANSIInTERA and not TestProcedureTERAInTERA and not Test_query_band and not TestSafeCast" --ignore=tests/functional/adapter/test_otf_integration.py tests/functional
env:
DBT_TERADATA_SERVER_NAME: ${{ steps.create-csae-environments.outputs.teradata-server-name }}
DBT_TERADATA_USERNAME: dbc
Expand All @@ -141,7 +134,7 @@ jobs:
export DBT_TEST_USER_1=test_grants_user1
export DBT_TEST_USER_2=test_grants_user2
export DBT_TEST_USER_3=test_grants_user3
pytest --cov=dbt -v -k "not TestCurrentTimestamp and not TestProcedureTERAInANSI and not TestProcedureANSIInANSI" tests/functional --cov-append
pytest --cov=dbt -v -k "not TestCurrentTimestamp and not TestProcedureTERAInANSI and not TestProcedureANSIInANSI and not TestSafeCast" --ignore=tests/functional/adapter/test_otf_integration.py tests/functional --cov-append
env:
DBT_TERADATA_SERVER_NAME: ${{ steps.create-csae-environments.outputs.teradata-server-name }}
DBT_TERADATA_USERNAME: dbc
Expand Down Expand Up @@ -203,14 +196,12 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/test/performance
./run.sh

- name: Run catalog tests with ANSI
run: |
# cd $GITHUB_WORKSPACE/test/catalog/with_qvci
# ./run.sh
cd $GITHUB_WORKSPACE/test/catalog/without_qvci
./run.sh

- name: Setup environment with TERA for performance, catalog and valid history tests
run: |
rm ~/.dbt/profiles.yml
Expand Down Expand Up @@ -290,14 +281,12 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/test/performance
./run.sh

- name: Run catalog tests with TERA
run: |
# cd $GITHUB_WORKSPACE/test/catalog/with_qvci
# ./run.sh
cd $GITHUB_WORKSPACE/test/catalog/without_qvci
./run.sh

- name: Run valid history tests
run: |
cd $GITHUB_WORKSPACE/test/valid_history_test
Expand All @@ -309,7 +298,6 @@ jobs:
cd $GITHUB_WORKSPACE/test/dbt_external_tables_test/integration_tests
chmod 777 run.sh
./run.sh

- name: Run nopi tests
run: |
sed -i "s/hostname=dbt.*/hostname='$DBT_TERADATA_SERVER_NAME'/g" tests/conftest.py
Expand All @@ -324,7 +312,6 @@ jobs:
- name: Print Code Coverage Report
run: |
coverage report -m

- name: Delete CSAE environment
if: always()
run: |
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI Unit Tests

on:
push:
branches:
- main
- 'releases/**'
pull_request:
branches:
- main
- 'releases/**'
workflow_dispatch:

jobs:
unit-tests:
name: Unit tests (Python ${{ matrix.python }})
strategy:
fail-fast: false
matrix:
python: ['3.10', '3.11', '3.12', '3.13']
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt

- name: Run unit tests
shell: bash
run: |
pytest tests/unit/ -v
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
## dbt-teradata 1.0.0a

### Features

### Fixes

### Docs
- Open Table Format (OTF) support via Teradata DATALAKE objects — create and read Iceberg/Delta Lake tables (External OTF / JOTF) with `table` and `incremental` (`append`) materializations. See the "Open Table Format (OTF) support" section in the README for configuration, the supported/unsupported feature matrix, and limitations.

### Under the hood
- README updated with a restructured OTF section: External JOTF vs Managed OTF clarification, "what is / isn't supported" lists, consolidated incremental documentation, and limitations.
Loading
Loading