Skip to content

Commit

Permalink
fix(impala): allow specifying temp=False in create_table
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth authored and cpcloud committed Sep 6, 2024
1 parent 159789b commit e29712c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ibis/backends/impala/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
6 changes: 3 additions & 3 deletions ibis/backends/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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"),
Expand All @@ -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(
{
Expand Down

0 comments on commit e29712c

Please sign in to comment.