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

Do Not Print StackTraces to STDERR in ParseDriver

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0, 4.0.0
    • Fix Version/s: None
    • Component/s: Parser
    • Labels:

      Description

      org/apache/hadoop/hive/ql/parse/ParseDriver.java

      catch (RecognitionException e) {
            e.printStackTrace();
            throw new ParseException(parser.errors);
          }
      

      Do not use e.printStackTrace() and print to STDERR. Either remove or replace with a debug-level log statement. I would vote to simply remove. There are several occurrences of this pattern in this class.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              belugabehr BELUGA BEHR
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: