Skip to content

Commit

Permalink
chore: adjust show_sql doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 17, 2023
1 parent 2739bc3 commit a4f6dcf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ibis/expr/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ def show_sql(
>>> expr = t.select(c=_.a * 2)
>>> ibis.show_sql(expr) # duckdb dialect by default
SELECT
t0.a * CAST(2 AS TINYINT) AS c
FROM t AS t0
>>> ibis.show_sql(expr, dialect="mysql")
SELECT
t0.a * 2 AS c
FROM t AS t0
(
t0.a
) * (
CAST(2 AS TINYINT)
) AS c
FROM "t" AS t0
"""
print(to_sql(expr, dialect=dialect), file=file)

Expand Down

0 comments on commit a4f6dcf

Please sign in to comment.