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

ExprNodeGenericFuncDesc.toString() generating unbalanced parenthesises

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.13.0
    • Component/s: Query Processor
    • Labels:
      None

      Description

      This makes the generated expression tree unreadable.

        public String toString() {
          StringBuilder sb = new StringBuilder();
          sb.append(genericUDF.getClass().toString());
          sb.append("(");
          for (int i = 0; i < chidren.size(); i++) {
            if (i > 0) {
              sb.append(", ");
            }
            sb.append(chidren.get(i).toString());
          }
          sb.append("("); -- This needs to be removed.
          sb.append(")");
          return sb.toString();
        }
      

        Attachments

        1. HIVE-5763.1.patch
          21 kB
          Xuefu Zhang
        2. HIVE-5763.2.patch
          21 kB
          Xuefu Zhang
        3. HIVE-5763.patch
          0.5 kB
          Xuefu Zhang

          Activity

            People

            • Assignee:
              xuefuz Xuefu Zhang
              Reporter:
              xuefuz Xuefu Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: