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

Do Not Print StackTraces to STDERR in ParseDriver

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • 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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: