You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2017/01/11 13:55:58 UTC
[jira] [Updated] (HIVE-15583) CTAS query removes leading underscore
from column names with CBO
[ https://issues.apache.org/jira/browse/HIVE-15583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesus Camacho Rodriguez updated HIVE-15583:
-------------------------------------------
Status: Patch Available (was: In Progress)
> CTAS query removes leading underscore from column names with CBO
> ----------------------------------------------------------------
>
> Key: HIVE-15583
> URL: https://issues.apache.org/jira/browse/HIVE-15583
> Project: Hive
> Issue Type: Bug
> Components: CBO
> Affects Versions: 2.2.0
> Reporter: Jesus Camacho Rodriguez
> Assignee: Jesus Camacho Rodriguez
> Priority: Minor
> Attachments: HIVE-15583.patch
>
>
> L209 in PlanModifierForASTConv.java:
> {code:java}
> if (colAlias.startsWith("_")) {
> colAlias = colAlias.substring(1);
> colAlias = getNewColAlias(newSelAliases, colAlias);
> }
> {code}
> I would like to explore if we can just remove this limitation.
> For instance, due to this issue, when we create a table with Druid storage handler, we need to add an additional underscore for column names as Druid is expecting columns with a certain name.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)