You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2013/10/07 04:24:49 UTC

[jira] [Updated] (HIVE-5044) StringUtils

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

Thejas M Nair updated HIVE-5044:
--------------------------------

    Fix Version/s:     (was: 0.12.0)

Preparing for 0.12 release. Removing fix version of 0.12 for those that are not in 0.12 branch.


> StringUtils
> -----------
>
>                 Key: HIVE-5044
>                 URL: https://issues.apache.org/jira/browse/HIVE-5044
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Benjamin Jakobus
>            Assignee: Benjamin Jakobus
>
> When you see code like this:
> first = true;
> for (int k = 0; k < columnSize; k++) {
> String newColName = i + "VALUE" + k; // any name, it does not matter.
> + newColName = i + "VALUE" + k; // any name, it does not matter.
> if (!first)
> Unknown macro: { - valueColNames = valueColNames + ","; - valueColTypes = valueColTypes + ","; + valueColNames.append(","); + valueColTypes.append(","); }
> valueColNames = valueColNames + newColName;
> valueColTypes = valueColTypes + valueCols.get(k).getTypeString();
> + valueColNames.append(newColName);
> + valueColTypes.append(valueCols.get(k).getTypeString());
> first = false;
> Can you replace it with StringUtil.join()
> I have seen this about 4 places in hive.



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