[
https://issues.apache.org/jira/browse/CALCITE-5338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde updated CALCITE-5338:
---------------------------------
Description:
In Avatica's {{DateTimeUtils}}, replace {{floorDiv}} and {{floorMod}} with
equivalents in {{java.lang.Math}}.
The JDK equivalents were introduced in Java 8 (after Avatica was written) but
now possibly have superior performance (due to intrinsics).
{{floorMod(long, int)}}, which was introduced in JDK 9, is still off-limits.
was:
In Avatica's {{{}DateTimeUtils{}}}, replace {{floorDiv}} and {{floorMod}} with
equivalents in {{{}java.lang.Math{}}}.
The JDK equivalents were introduced in Java 8 (after Avatica was written) but
now possibly have superior performance (due to intrinsics).
{{{}floorMod(long, int){}}}, which was introduced in JDK 9, is still off-limits.
> In Avatica's DateTimeUtils, replace floorDiv and floorMod with equivalents in
> java.lang.Math
> ---------------------------------------------------------------------------------------------
>
> Key: CALCITE-5338
> URL: https://issues.apache.org/jira/browse/CALCITE-5338
> Project: Calcite
> Issue Type: Bug
> Components: avatica, core
> Reporter: Julian Hyde
> Priority: Major
>
> In Avatica's {{DateTimeUtils}}, replace {{floorDiv}} and {{floorMod}} with
> equivalents in {{java.lang.Math}}.
> The JDK equivalents were introduced in Java 8 (after Avatica was written) but
> now possibly have superior performance (due to intrinsics).
> {{floorMod(long, int)}}, which was introduced in JDK 9, is still off-limits.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)