Skip to content

fix: handle unparameterized interval_day type#178

Open
thgschwind wants to merge 1 commit into
substrait-io:mainfrom
thgschwind:working
Open

fix: handle unparameterized interval_day type#178
thgschwind wants to merge 1 commit into
substrait-io:mainfrom
thgschwind:working

Conversation

@thgschwind

Copy link
Copy Markdown
Contributor

Allow interval_day to be used without an explicit precision parameter.

Fixes: #177

Allow interval_day to be used without an explicit precision parameter.

Signed-off-by: Thomas Gschwind <thg@zurich.ibm.com>
Comment on lines +154 to +159
if parametrized_type.precision is None:
return Type(
interval_day=Type.IntervalDay(
nullability=nullability,
)
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a little bit more context on whether this is only an issue for IntervalDay for you and how this is triggered? I'm asking since we have very similar code above for PrecisionTimestampContext and PrecisionTimestampTZContext.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

interval_day type without precision parameter causes error in derivation expression evaluation

2 participants