Repository navigation
Add PARAMETRIC_INTERVAL client capability - #656
Open
azawlocki-sbdt wants to merge 1 commit into
Open
azawlocki-sbdt wants to merge 1 commit into
azawlocki-sbdt wants to merge 1 commit into
Conversation
azawlocki-sbdt
force-pushed
the
azawlocki/parametric-interval
branch
from
December 2, 2026 11:57
390a1f9 to
23b6b8f
Compare
With this capability, Trino sends intervals with 0 to 12 fractional digits, so interval parsing is adjusted to parse them correctly.
azawlocki-sbdt
force-pushed
the
azawlocki/parametric-interval
branch
from
December 2, 2026 12:16
23b6b8f to
1f33d4f
Compare
azawlocki-sbdt
marked this pull request as ready for review
December 2, 2026 12:19
findepi
removed their request for review
December 2, 2026 14:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Before version 484, Trino always returned day-time intervals with 3 fractional digits. From v484 it uses 0 to 12 fractional digits (depending on the type's precision) if the client has PARAMETRIC_INTERVAL capability. The parser for intervals is modified to parse the extended format. Tests are also adjusted to the different value ranges and rounding behavior between pre-484 and newer Trino versions.
Non-technical explanation
Release notes
( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text: