-
from sqlglot.executor import execute
execute("""
select count(id)
from t
""",
tables=dict(t=[dict(id=1)]),
)
# _col_0
# 1
execute("""
select count(id)
from t
where false
""",
tables=dict(t=[dict(id=1)]),
)
# _col_0 I'd expect the second to give # _col_0
# 0 instead. Is it a bug or am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
tobymao
Nov 29, 2022
Replies: 1 comment
-
it's a bug it's fixed now |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
amacfie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it's a bug
it's fixed now