Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21303

Update TextRecordReader

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.2.0, 4.0.0
    • None
    • Query Processor
    • None

    Description

      Remove use of Deprecated org.apache.hadoop.mapred.LineRecordReader.LineReader

      For every call to next, the code dives into the configuration map to see if this feature is enabled. Just look it up once and cache the value.

      public int next(Writable row) throws IOException {
      ...
          if (HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVESCRIPTESCAPE)) {
            return HiveUtils.unescapeText((Text) row);
          }
          return bytesConsumed;
      }
      

      Other clean up.

      Attachments

        1. HIVE-21303.3.patch
          3 kB
          David Mollitor
        2. HIVE-21303.2.patch
          5 kB
          David Mollitor
        3. HIVE-21303.1.patch
          2 kB
          David Mollitor

        Activity

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

          People

            belugabehr David Mollitor Assign to me
            belugabehr David Mollitor

            Dates

              Created:
              Updated:

              Slack

                Issue deployment