StarRocks/dbt-starrocks

CMySQLConnection' object has no attribute 'server_version

Closed this issue · 1 comments

python3 -m pytest tests/functional
23:07:02  Finished running 1 seed in 0 hours 0 minutes and 0.10 seconds (0.10s).
23:07:02
23:07:02  Completed with 1 error and 0 warnings:
23:07:02
23:07:02    'CMySQLConnection' object has no attribute 'server_version'
23:07:02
23:07:02  Done. PASS=0 WARN=0 ERROR=1 SKIP=0 TOTAL=1

Happens when I only provide x.y release not x.y.z

(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'
    }