Skip to content

Commit

Permalink
docs(fix): skip doctest for SqlString return
Browse files Browse the repository at this point in the history
  • Loading branch information
IndexSeek authored and cpcloud committed Nov 23, 2024
1 parent 9877766 commit efbe5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibis/expr/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,15 @@ def to_sql(
>>> import ibis
>>> t = ibis.table({"a": "int", "b": "int"}, name="t")
>>> expr = t.mutate(c=t.a + t.b)
>>> ibis.to_sql(expr)
>>> ibis.to_sql(expr) # doctest: +SKIP
SELECT
"t0"."a",
"t0"."b",
"t0"."a" + "t0"."b" AS "c"
FROM "t" AS "t0"
You can also specify the SQL dialect to use for compilation:
>>> ibis.to_sql(expr, dialect="mysql")
>>> ibis.to_sql(expr, dialect="mysql") # doctest: +SKIP
SELECT
`t0`.`a`,
`t0`.`b`,
Expand Down

0 comments on commit efbe5b1

Please sign in to comment.