[
https://issues.apache.org/jira/browse/HIVE-5763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xuefu Zhang updated HIVE-5763:
------------------------------
Attachment: HIVE-5763.patch
Patch fixed the issue. I don't think this requires a test case, or a review
board item.
> 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
> Reporter: Xuefu Zhang
> Assignee: Xuefu Zhang
> Priority: Minor
> Attachments: 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)