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

ExprNodeGenericFuncDesc.toString() generating unbalanced parenthesises

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.12.0
    • 0.13.0
    • Query Processor
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            xuefuz Xuefu Zhang Assign to me
            xuefuz Xuefu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment