StarRocks / dbt-starrocks

dbt-starrocks contains all of the code enabling dbt to work with StarRocks
10 stars 4 forks source link

'int' object has no attribute 'isdigit' when version is set to 3.1.9 #24

Closed alberttwong closed 4 months ago

alberttwong commented 4 months ago
python3 -m pytest tests/functional
23:09:25  Completed with 3 errors and 0 warnings:
23:09:25
23:09:25    'int' object has no attribute 'isdigit'
23:09:25
23:09:25    'int' object has no attribute 'isdigit'
23:09:25
23:09:25    'int' object has no attribute 'isdigit'
23:09:25
23:09:25  Done. PASS=0 WARN=0 ERROR=3 SKIP=0 TOTAL=3
========================================================================================= short test summary info ==========================================================================================
FAILED tests/functional/adapter/test_basic.py::TestSimpleMaterializationsMyAdapter::test_base - AssertionError: dbt exit state did not match expected
FAILED tests/functional/adapter/test_basic.py::TestSingularTestsEphemeralMyAdapter::test_singular_tests_ephemeral - AssertionError: dbt exit state did not match expected
FAILED tests/functional/adapter/test_basic.py::TestEphemeralMyAdapter::test_ephemeral - AssertionError: dbt exit state did not match expected
FAILED tests/functional/adapter/test_basic.py::TestIncrementalMyAdapter::test_incremental - AssertionError: dbt exit state did not match expected
FAILED tests/functional/adapter/test_basic.py::TestGenericTestsMyAdapter::test_generic_tests - AssertionError: dbt exit state did not match expected
FAILED tests/functional/adapter/test_basic.py::TestSnapshotCheckColsMyAdapter::test_snapshot_check_cols - AssertionError: dbt exit state did not match expected
FAILED tests/functional/adapter/test_basic.py::TestSnapshotTimestampMyAdapter::test_snapshot_timestamp - AssertionError: dbt exit state did not match expected
======================================================================================= 7 failed, 3 passed in 7.70s ========================================================================================
(dbt-env) atwong@Albert-CelerData dbt-starrocks % cat tests/conftest.py
import pytest
import os

# Import the standard functional fixtures as a plugin
# Note: fixtures with session scope need to be local
pytest_plugins = ["dbt.tests.fixtures.project"]

# The profile dictionary, used to write out profiles.yml
# dbt will supply a unique schema per test, so we do not specify 'schema' here
@pytest.fixture(scope="class")
def dbt_profile_target():
    return {
        'type': 'starrocks',
        'threads': 1,
        'server': 'localhost',
        'username': 'root',
        'password': '',
        'port': 9030,
        'ssl_disabled': True,
        'version': '3.1.9'
    }
alberttwong commented 4 months ago

https://github.com/StarRocks/dbt-starrocks/commit/fa5e1ef71d6a2698af7db61b26d76303a3f8da15