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

Do Not Print StackTraces to STDERR in ParseDriver

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Query Planning
    • Labels:
    • Target Version/s:

      Description

      https://github.com/apache/hive/blob/6d890faf22fd1ede3658a5eed097476eab3c67e9/ql/src/java/org/apache/hadoop/hive/ql/exec/JoinOperator.java

      // Do not print stack trace to STDERR - remove this, just throw the HiveException
          } catch (Exception e) {
            e.printStackTrace();
            throw new HiveException(e);
          }
      ...
      // Do not log and throw.  log *or* throw.  In this case, just throw. Remove logging.
      // Remove explicit 'return' call. No need for it.
            try {
              skewJoinKeyContext.endGroup();
            } catch (IOException e) {
              LOG.error(e.getMessage(), e);
              throw new HiveException(e);
            }
            return;
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: