substrait-io / substrait-java

Apache License 2.0
75 stars 72 forks source link

Short type mismatch for intervals between the doc and the implementation #240

Closed ajegou closed 6 months ago

ajegou commented 6 months ago

In the documentation short types for interval_day and interval_year are iday iyear:

Screenshot 2024-03-29 at 17 36 15

but the code that does the mapping between type and short type uses day and year instead:

Screenshot 2024-03-29 at 17 36 40

and substrait fails to find the function when loading a logical plan, for example:

java.lang.IllegalArgumentException: Unexpected scalar function with key date_bin:iday_tstz_tstz.
 The namespace ***.yaml is loaded but no scalar function with this key found.