Closed pybokeh closed 4 months ago
@pybokeh Thanks for the issue!
This is expected behavior, because you haven't redefined the flat_rate
table that's inside the database, you've only redefined the variable in Python.
.sql()
allows you to refer to tables in the database, as well as any previous expression you've called .alias(name)
on.
In your case, call the alias
method on your redefinition of flat_rate
and then use that new name in the SQL string, like so:
flat_rate = flat_rate.mutate(...).alias("typed_flat_rate")
flat_rate.sql("SELECT * FROM typed_flat_rate")
Going to close this as wontfix, again thanks for the report!
What happened?
My code:
Then when doing:
The output table that renders in jupyter notebook indicate the 2 columns are both of type "string" when I expect RO_DATE column to be of type date and DLR_LAB_RATE_AMT to be of type float64.
What version of ibis are you using?
ibis version 9.0 from pip install.
What backend(s) are you using, if any?
DuckDB
Relevant log output
No response
Code of Conduct