Skip to content

Commit 560fa8e

Browse files
alxmrsclaude
andcommitted
1 parent 2102e03 commit 560fa8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎xarray_sql/sql.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def sql(self, query: str, *args, **kwargs) -> XarrayDataFrame:
253253
replaced = _table_replaced(query)
254254
existed = replaced is not None and self.table_exist(replaced)
255255
df = super().sql(query, *args, **kwargs)
256-
if existed:
256+
if replaced is not None and existed:
257257
# DataFusion keeps a quoted name's case, and lowers an unquoted
258258
# one.
259259
quoted = replaced.startswith('"')

0 commit comments

Comments
 (0)