Registry Mirror
Skip to content

Conversation

@TechWizard9999

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Explained in the issue.

What changes are included in this PR?

Add a working invoke with args that checks the unit and calls date trunc. the error tests now match only the message so they also pass without simplify.

Are these changes tested?

Yes, added unit tests that call invoke with args directly.

Are there any user-facing changes?

No.

@andygrove andygrove left a comment

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.

LGTM, thanks @TechWizard9999! I checked this against the repro in #310 with simplify_expressions disabled. Scalar and array inputs, NULL units, Time32(s)/Time32(ms)/Time64(µs) inputs and invalid units (including DAY) all behave the same as the simplified path. Moving the unit check into a shared function so simplify and invoke_with_args cannot drift apart is a nice touch.

I left a few small non-blocking nits inline.

@TechWizard9999

Copy link
Copy Markdown
Contributor Author

Sure!! Will keep in my mind

@andygrove
andygrove merged commit 7a8f48e into apache:main Nov 16, 2026
4 checks passed
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.

[Bug] time_trunc errors when evaluated without simplify: invoke_with_args is not implemented

2 participants