Skip to content

Commit

Permalink
Base 207/add test (#1057)
Browse files Browse the repository at this point in the history
* Add test for upstream change.
* Skip session since it's not liking the test.
* Import pytest to fix skip error.
* Dial in tests to reflect error messages from spark.

---------

Co-authored-by: Mila Page <[email protected]>
Co-authored-by: Mike Alfare <[email protected]>
  • Loading branch information
3 people authored Jul 8, 2024
1 parent 824ca0f commit 034cb61
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/functional/adapter/dbt_show/test_dbt_show.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import pytest

from dbt.tests.adapter.dbt_show.test_dbt_show import (
BaseShowSqlHeader,
BaseShowLimit,
BaseShowDoesNotHandleDoubleLimit,
)


class TestSparkShowLimit(BaseShowLimit):
pass


class TestSparkShowSqlHeader(BaseShowSqlHeader):
pass


@pytest.mark.skip_profile("apache_spark", "spark_session", "databricks_http_cluster")
class TestSparkShowDoesNotHandleDoubleLimit(BaseShowDoesNotHandleDoubleLimit):
"""The syntax message is quite variable across clusters, but this hits two at once."""

DATABASE_ERROR_MESSAGE = "limit"

0 comments on commit 034cb61

Please sign in to comment.