You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "mihaibudiu (via GitHub)" <gi...@apache.org> on 2026/08/05 22:40:50 UTC
[PR] [CALCITE-7692] FLOOR/CEIL of INTERVAL produces wrong results [calcite]
mihaibudiu opened a new pull request, #5155:
URL: https://github.com/apache/calcite/pull/5155
## Jira Link
[CALCITE-7692](https://issues.apache.org/jira/browse/CALCITE-7692)
## Changes Proposed
FLOOR/CEIL were only implemented correctly for INTERVAL LITERALS. This PR generalizes them to arbitrary intervals, using the convertlet table. The implementation bails out for non-deterministic functions - that should probably be handled in a different place for all such rewrites.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-7692] FLOOR/CEIL of INTERVAL produces wrong results [calcite]
Posted by "mihaibudiu (via GitHub)" <gi...@apache.org>.
mihaibudiu commented on PR #5155:
URL: https://github.com/apache/calcite/pull/5155#issuecomment-5198283255
BTW: there are some (disabled) tests which use a two-argument `FLOOR(timestamp TO qualifier)`; this two-argument FLOOR function which is not supported by the validator, so I left them unsupported.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-7692] FLOOR/CEIL of INTERVAL produces wrong results [calcite]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #5155:
URL: https://github.com/apache/calcite/pull/5155#issuecomment-5198423401
## [](https://sonarcloud.io/dashboard?id=apache_calcite&pullRequest=5155) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_calcite&pullRequest=5155&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_calcite&pullRequest=5155&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_calcite&pullRequest=5155&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [82.4% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_calcite&pullRequest=5155&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_calcite&pullRequest=5155&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_calcite&pullRequest=5155)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CALCITE-7692] FLOOR/CEIL of INTERVAL produces wrong results [calcite]
Posted by "mihaibudiu (via GitHub)" <gi...@apache.org>.
mihaibudiu merged PR #5155:
URL: https://github.com/apache/calcite/pull/5155
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org