Skip to content

Commit 9e57b8e

Browse files
committed
Fix optimize options
1 parent a9ee804 commit 9e57b8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mustela/sql.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def export_sql(
3636
table_name: str,
3737
pipeline: ParsedPipeline,
3838
dialect: str = "duckdb",
39-
optimize: bool = False,
39+
optimize: bool = True,
4040
) -> str:
4141
"""Export SQL for a given pipeline.
4242
@@ -61,7 +61,7 @@ def export_sql(
6161
ibis_expr = translate(unbound_table, pipeline)
6262
sqlglot_expr = getattr(sc, dialect).compiler.to_sqlglot(ibis_expr)
6363

64-
if True:
64+
if optimize:
6565
c = Catalog()
6666
catalog = {
6767
unbound_table.get_name(): c.to_sqlglot_schema(unbound_table.schema())

0 commit comments

Comments
 (0)