-
I've been working with some casting issues while writing a backend for SingleStoreDB. The SingleStoreDB is based on MySQL so it uses the same drivers, but there are SQL differences. I was doing some work with casts and noticed that you couldn't cast doubles, which is true of older versions of MySQL as well. SingleStoreDB adds a casting operation ( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for opening an issue. This behavior is ... interesting. Ibis throws away the length parameter, because up until this discussion there are no string APIs (or generic APIs like I don't think this behavior is enough to justify adding a whole new type, but you can special case the Would that work for you? |
Beta Was this translation helpful? Give feedback.
-
I'll have to investigate further, but if the |
Beta Was this translation helpful? Give feedback.
Thanks for opening an issue.
This behavior is ... interesting.
Ibis throws away the length parameter, because up until this discussion there are no string APIs (or generic APIs like
.cast
that use strings) where the length matters. All of our backends handle variable length strings so it didn't seem worth it to have another string type.I don't think this behavior is enough to justify adding a whole new type, but you can special case the
ops.Cast
translation and look at the operation'soutput_dtype
attribute as well as the input dtypes and choose your desired cast code.Would that work for you?