hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuefu Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-5763) ExprNodeGenericFuncDesc.toString() generating unbalanced parenthesises
Date Sat, 23 Nov 2013 19:29:35 GMT

     [ https://issues.apache.org/jira/browse/HIVE-5763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xuefu Zhang updated HIVE-5763:
------------------------------

    Affects Version/s: 0.12.0
               Status: Patch Available  (was: Open)

> ExprNodeGenericFuncDesc.toString() generating unbalanced parenthesises
> ----------------------------------------------------------------------
>
>                 Key: HIVE-5763
>                 URL: https://issues.apache.org/jira/browse/HIVE-5763
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.12.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>            Priority: Minor
>         Attachments: HIVE-5763.1.patch, HIVE-5763.2.patch, HIVE-5763.patch
>
>
> This makes the generated expression tree unreadable.
> {code}
>   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();
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message