diff --git a/setup.py b/setup.py index 60ce52c..95dd7e5 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ python_requires=">=3.8", install_requires=[ "prettytable<3.12.1", - "sqlglot>=24.0.0,<25.32", + "sqlglot>=24.0.0,<25.33", "typing_extensions>=4.8,<5", ], extras_require={ diff --git a/sqlframe/base/dataframe.py b/sqlframe/base/dataframe.py index 6e9cf79..5f1144a 100644 --- a/sqlframe/base/dataframe.py +++ b/sqlframe/base/dataframe.py @@ -629,10 +629,10 @@ def _get_expressions( # We will drop the "view" if it exists before running the cache table output_expressions.append(exp.Drop(this=cache_table, exists=True, kind="VIEW")) elif expression_type == exp.Create: - expression = df.output_expression_container.copy() + expression = df.output_expression_container.copy() # type: ignore expression.set("expression", select_expression) elif expression_type == exp.Insert: - expression = df.output_expression_container.copy() + expression = df.output_expression_container.copy() # type: ignore select_without_ctes = select_expression.copy() select_without_ctes.set("with", None) expression.set("expression", select_without_ctes)