From e29712c31264eca39d2606c70848097f092db6fb Mon Sep 17 00:00:00 2001 From: Gil Forsyth Date: Wed, 4 Sep 2024 17:18:21 -0400 Subject: [PATCH] fix(impala): allow specifying `temp=False` in `create_table` --- ibis/backends/impala/__init__.py | 2 +- ibis/backends/tests/test_client.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ibis/backends/impala/__init__.py b/ibis/backends/impala/__init__.py index 04aebafaf6b1..521c19bb7c12 100644 --- a/ibis/backends/impala/__init__.py +++ b/ibis/backends/impala/__init__.py @@ -513,7 +513,7 @@ def create_table( if schema is not None: schema = ibis.schema(schema) - if temp is not None: + if temp: raise NotImplementedError( "Impala backend does not yet support temporary tables" ) diff --git a/ibis/backends/tests/test_client.py b/ibis/backends/tests/test_client.py index 9dba682e11ed..bfb97a5c046a 100644 --- a/ibis/backends/tests/test_client.py +++ b/ibis/backends/tests/test_client.py @@ -119,7 +119,7 @@ def test_create_table(backend, con, temp_table, func, sch): marks=[ pytest.mark.notyet(["clickhouse"], reason="Can't specify both"), pytest.mark.notyet( - ["pyspark", "trino", "exasol", "risingwave"], + ["pyspark", "trino", "exasol", "risingwave", "impala"], reason="No support for temp tables", ), pytest.mark.notyet( @@ -145,7 +145,7 @@ def test_create_table(backend, con, temp_table, func, sch): id="temp, no overwrite", marks=[ pytest.mark.notyet( - ["pyspark", "trino", "exasol", "risingwave"], + ["pyspark", "trino", "exasol", "risingwave", "impala"], reason="No support for temp tables", ), pytest.mark.notimpl(["mssql"], reason="Incorrect temp table syntax"), @@ -157,7 +157,7 @@ def test_create_table(backend, con, temp_table, func, sch): ), ], ) -@pytest.mark.notimpl(["druid", "impala"]) +@pytest.mark.notimpl(["druid"]) def test_create_table_overwrite_temp(backend, con, temp_table, temp, overwrite): df = pd.DataFrame( {