[
https://issues.apache.org/jira/browse/AMBARI-20181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15890832#comment-15890832
]
Hudson commented on AMBARI-20181:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #6904 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/6904/])
AMBARI-20181 : hive view 2.0 : added back ticks in column names to
(nitiraj.rathore:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d562216ed7784fd5898668b17ddf80abdbf642b1])
* (add)
contrib/views/hive20/src/test/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGeneratorSpecTest.groovy
* (edit)
contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/InsertFromQueryGenerator.java
* (edit)
contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/dto/ColumnInfo.java
* (edit)
contrib/views/hive20/src/test/java/org/apache/ambari/view/hive20/internal/query/generators/CreateTableQueryGeneratorTest.java
* (edit)
contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/internal/query/generators/CreateTableQueryGenerator.java
> HiveView2.0: Can not create a table with space in column name with upload
> table feature
> ---------------------------------------------------------------------------------------
>
> Key: AMBARI-20181
> URL: https://issues.apache.org/jira/browse/AMBARI-20181
> Project: Ambari
> Issue Type: Bug
> Components: ambari-views
> Affects Versions: 2.5.0
> Reporter: Yesha Vora
> Assignee: Nitiraj Singh Rathore
> Priority: Critical
> Attachments: AMBARI-20181_branch-2.5_2.patch
>
>
> Scenario:
> * Go to HiveView
> * Go to table tab
> * Click on Upload table
> * Upload a CSV file such that it column name has a space in it.
> * Click on create table.
> The table creation failed because it does not add `` in the column name where
> it has space or other special chars.
> Currently, table creation is failing with below error.
> {code}
> org.apache.hive.service.cli.HiveSQLException: Error while compiling
> statement: FAILED: SemanticException [Error 10004]: Line 1:56 Invalid table
> alias or column reference 'Issue': (possible column names are: summary, issue
> key, issue id, parent id, issue type, status, project key, project name,
> project type, project lead, project description, project url, priority,
> resolution, assignee, reporter, creator, affects version, fix versions,
> component, labels){code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)