diff --git a/ibis/backends/clickhouse/compiler/values.py b/ibis/backends/clickhouse/compiler/values.py index 9c62e98a2d8f..99d2ea0b70a4 100644 --- a/ibis/backends/clickhouse/compiler/values.py +++ b/ibis/backends/clickhouse/compiler/values.py @@ -454,7 +454,7 @@ def _literal(op, **kw): fields = ", ".join(f"{value} as `{key}`" for key, value in op.value.items()) return f"tuple({fields})" else: - raise NotImplementedError(type(op)) + raise NotImplementedError(f'Unsupported type: {dtype!r}') def _array_literal_values(op): diff --git a/ibis/backends/tests/test_generic.py b/ibis/backends/tests/test_generic.py index d312d18878bb..c07581db8d22 100644 --- a/ibis/backends/tests/test_generic.py +++ b/ibis/backends/tests/test_generic.py @@ -1036,12 +1036,7 @@ def test_exists(batting, awards_players, method_name): raises=sqlalchemy.exc.StatementError, ), pytest.mark.broken( - ['clickhouse'], - "", - raises=NotImplementedError, - ), - pytest.mark.broken( - ['impala'], + ['clickhouse', 'impala'], "Unsupported type: Binary(nullable=True)", raises=NotImplementedError, ), @@ -1160,12 +1155,7 @@ def test_exists(batting, awards_players, method_name): raises=ProgrammingError, ), pytest.mark.broken( - ['clickhouse'], - "", - raises=NotImplementedError, - ), - pytest.mark.broken( - ['impala'], + ['clickhouse', 'impala'], "Unsupported type: UUID(nullable=True)", raises=NotImplementedError, ),