Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-937

Replace deprecated method

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.8.0
    • 1.8.0
    • Java
    • None

    Description

      There are some deprecated method calls in the project that I think could be replaced by the recommended methods.

      org.apache.commons.cli
      OptionBuilder -> Option.builder
      GnuParser -> DefaultParser

      org.apache.parquet.avro
      AvroParquetWriter.<GenericData.Record>builder(path) -> AvroParquetWriter.<GenericData.Record>builder(outputFile)
      AvroParquetReader.<GenericData.Record>builder(path) -> AvroParquetReader.<GenericData.Record>builder(inputFile)

      DateColumnStatistics
      getMaximum -> getMaximumLocalDate
      getMinimum -> getMinimumLocalDate

      hadoop
      FSDataOutputStream(OutputStream) -> FSDataOutputStream(OutputStream, FileSystem.Statistics)
      fileStatus.isDir -> fileStatus.isDirectory

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Guiyankuang Yiqun Zhang
            Guiyankuang Yiqun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment