Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1503

Remove Ints Utility Class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.9.0
    • 1.11.0
    • None

    Description

        public static int checkedCast(long value) {
          int valueI = (int) value;
          if (valueI != value) {
            throw new IllegalArgumentException(String.format("Overflow casting %d to an int", value));
          }
          return valueI;
        }
      

      Link Here

      Now that the Parquet-MR project uses Java 1.8, this method can now be replaced with Java Math class and toIntExact method.

      Attachments

        Issue Links

          Activity

            People

              belugabehr David Mollitor
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: