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

Update TextRecordReader

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0, 3.2.0
    • Fix Version/s: None
    • Component/s: Query Processor
    • Labels:
      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

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

              Dates

              • Created:
                Updated: