We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9ee804 commit 9e57b8eCopy full SHA for 9e57b8e
src/mustela/sql.py
@@ -36,7 +36,7 @@ def export_sql(
36
table_name: str,
37
pipeline: ParsedPipeline,
38
dialect: str = "duckdb",
39
- optimize: bool = False,
+ optimize: bool = True,
40
) -> str:
41
"""Export SQL for a given pipeline.
42
@@ -61,7 +61,7 @@ def export_sql(
61
ibis_expr = translate(unbound_table, pipeline)
62
sqlglot_expr = getattr(sc, dialect).compiler.to_sqlglot(ibis_expr)
63
64
- if True:
+ if optimize:
65
c = Catalog()
66
catalog = {
67
unbound_table.get_name(): c.to_sqlglot_schema(unbound_table.schema())
0 commit comments