diff --git a/.github/workflows/test_cloud.yml b/.github/workflows/test_cloud.yml index 07d94bce..42c62baa 100644 --- a/.github/workflows/test_cloud.yml +++ b/.github/workflows/test_cloud.yml @@ -8,23 +8,23 @@ on: # yamllint disable-line rule:truthy workflow_dispatch: jobs: - cloud_tests: - name: ClickHouse Cloud Tests + cloud_smt_tests: + name: ClickHouse Cloud SharedMergeTree Tests runs-on: ubuntu-latest env: PYTHONPATH: dbt - DBT_CH_TEST_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST }} - DBT_CH_TEST_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD }} + DBT_CH_TEST_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT }} + DBT_CH_TEST_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT }} DBT_CH_TEST_CLUSTER_MODE: true DBT_CH_TEST_CLOUD: true steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v3 - name: Setup Python 3.11 - uses: actions/setup-python@v5 + uses: actions/setup-python@v4 with: python-version: '3.11' diff --git a/dbt/include/clickhouse/macros/materializations/dictionary.sql b/dbt/include/clickhouse/macros/materializations/dictionary.sql index 4d03027e..56c77395 100644 --- a/dbt/include/clickhouse/macros/materializations/dictionary.sql +++ b/dbt/include/clickhouse/macros/materializations/dictionary.sql @@ -91,12 +91,6 @@ {% if credentials.get("database") -%} db '{{ credentials.get("database") }}' {%- endif %} - {% if credentials.get("host") and credentials.get("host") != 'localhost' -%} - host '{{ credentials.get("host") }}' - {% if credentials.get("port") -%} - port '{{ credentials.get("port") }}' - {%- endif %} - {%- endif %} {%- if table is not none %} table '{{ table }}' {% else %} diff --git a/tests/integration/adapter/persist_docs/test_persist_docs.py b/tests/integration/adapter/persist_docs/test_persist_docs.py index a9129a3b..58c1ae78 100644 --- a/tests/integration/adapter/persist_docs/test_persist_docs.py +++ b/tests/integration/adapter/persist_docs/test_persist_docs.py @@ -179,6 +179,9 @@ def project_config_update(self): @pytest.fixture(scope="class") def run_has_comments(self, project): + if os.environ.get('DBT_CH_TEST_CLOUD', '').lower() in ('1', 'true', 'yes'): + pytest.skip('Not running comment test for cloud') + def fixt(): run_dbt() run_dbt(["docs", "generate"])