Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5338

In Avatica's DateTimeUtils, replace floorDiv and floorMod with equivalents in java.lang.Math

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • avatica-1.23.0, 1.33.0
    • avatica, core
    • None

    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.

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: