You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2026/03/27 16:15:00 UTC
[jira] [Resolved] (CALCITE-7449) DateTimeUtils.intervalDayTimeToString silently truncates large intervals
[ https://issues.apache.org/jira/browse/CALCITE-7449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mihai Budiu resolved CALCITE-7449.
----------------------------------
Resolution: Fixed
Fixed in [https://github.com/apache/calcite-avatica/commit/dc8a961d631213a12400e1067ccbd9fb4de49ec9]
Thank you for the review [~caicancai]
> DateTimeUtils.intervalDayTimeToString silently truncates large intervals
> ------------------------------------------------------------------------
>
> Key: CALCITE-7449
> URL: https://issues.apache.org/jira/browse/CALCITE-7449
> Project: Calcite
> Issue Type: Bug
> Components: avatica
> Affects Versions: avatica-1.27.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
> Fix For: avatica-1.28
>
>
> Intervals can be very large, but when converting to string the function casts the value of the first significant unit (e.g., DAYS) from long to integer, dropping the high order bits.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)