You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Currently, if Interval value contains invalid amount component NotYetImplemented error type is returned.
That doesn't seem correct, because such values are not going to be supported (or at least, it's confusing)
Let's take a look at such example:
INTERVAL '1 MONTH DAY'
This is an obvious typo/mistake which leads to such error, but in fact it's just invalid value (missing number before DAY)
To Reproduce
There are tests for this case already:
DDtKey
changed the title
Wrong error type in case of invalid amount of Interval components
Wrong error type in case of invalid amount in Interval components
Jul 1, 2024
Describe the bug
Currently, if Interval value contains invalid amount component
NotYetImplemented
error type is returned.That doesn't seem correct, because such values are not going to be supported (or at least, it's confusing)
Let's take a look at such example:
INTERVAL '1 MONTH DAY'
This is an obvious typo/mistake which leads to such error, but in fact it's just invalid value (missing number before
DAY
)To Reproduce
There are tests for this case already:
arrow-rs/arrow-cast/src/cast/mod.rs
Lines 4403 to 4417 in bb1250c
Expected behavior
Return
ParseError
, like other errors fromparse_interval_components
Additional context
The text was updated successfully, but these errors were encountered: