-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timestamp
- interval results in The type of Timestamp(Nanosecond, Some("+00:00")) Minus Utf8 of binary physical should be same
#5650
Comments
@alamb |
I was imagining that we could coerce Utf8 --> interval automatically -- see #5652 For this ticket, I think we should generate a |
I agree that this is an error in |
@alamb are you also expect the case like that to be valid?
Or it has to be literal to make such kind of cast? |
Eventually I would like that case to work. It will require more work (both in arrow to get the appropriate evaluation kernels and datafusion to do the casting / coercion). I have it on my list to write up the steps for such support (it is a priority for us on IOx now as people start using intervals more widely). I expect a writeup in a day or two |
Describe the bug
I ran a query and got an internal error
To Reproduce
Using
datafusion-cli
:Note it is possible to use the
interval
syntax things work out correctlyNote if you try to use the same predicate outside of the where clause, we get a planning error (correctly):
Expected behavior
select * from foo where x < now() - '1 day';
should produce a planning error (rather than an internal error)Additional context
The text was updated successfully, but these errors were encountered: