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

Update TextRecordReader

    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.1.patch
          2 kB
          David Mollitor
        2. HIVE-21303.2.patch
          5 kB
          David Mollitor
        3. HIVE-21303.3.patch
          3 kB
          David Mollitor

        Activity

          People

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

            Dates

              Created:
              Updated: