You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2013/11/06 20:22:17 UTC
[jira] [Updated] (HIVE-5763) ExprNodeGenericFuncDesc.toString()
generating unbalanced parenthesises
[ https://issues.apache.org/jira/browse/HIVE-5763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xuefu Zhang updated HIVE-5763:
------------------------------
Description:
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}
was:This makes the generated expression tree unreadable.
> 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
> Priority: Minor
>
> 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)