Aqua Data Studio 17.0.0-rc-39
Build #: 47130
Built on: 2015-Nov-19 03:07:33 PM
OS: Ubuntu 14.04
Linux (3.13.0-59-generic, amd64) / UTF-8 / en / IN / Oracle Corporation 1.8.0_40-b26
Memory: Max=704,643,072; Total=578,813,952; Free=226,655,184; CPUs=8
Issue: Alter Table window doesn't open for Table having TableName as reserved keyword
Steps:
1. Create table using below script. Or use ADS Visual Editor-Create Table
|
96 KB
|
97 KB
|
144 KB
|
119 KB
|
113 KB
Take simple example, Execute below script in Query analyzer
CREATE TABLE `select` (x INT)
Here select is reserved keyword , since it is with backticks query succeeds.
But in ADS, go to table select , try to expand the column in tree node you will observed exception.
Exception :
org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 1:19 extraneous input 'select' expecting EOF near '<EOF>'
ADS Version | Hive version : Which is default with ADS builds | Tested for below Distributions | Result |
ADS 15 | 0.13 |
HDP 2.5
CDH 5.7
Apache Hive 2.7
|
Yes ,Issue Observed
|
ADS 16 | 0.14 | ||
ADS 17 | 1 |
ADS Version | Hive version : Which is default with ADS builds | Tested for below Distributions | Result |
ADS 15 | 0.13 |
HDP 2.5
CDH 5.7
Apache Hive 2.7
|
Yes ,Issue Observed
|
ADS 16 | 0.14 | ||
ADS 17 | 1 |
No code changes.
Hi Umesh, I think this was fixed a while back with issue 14688. Please give it another try. Thanks, Tom
No code changes.
Hi Umesh, I think this was fixed a while back with issue 14688. Please give it another try. Thanks, Tom
Verified in ADS 19.0.0-dev-27. Able to alter table having name as special keywords. Also scripts generated successfully.
Hortonworks 2.5 - Hive[ADS default drivers 1.1] - Scripts , Alter table
Hortonworks 2.5 - SparkSql1.6[ADS default drivers 1.1] - Alter table
Verified in ADS 19.0.0-dev-27. Able to alter table having name as special keywords. Also scripts generated successfully.
Hortonworks 2.5 - Hive[ADS default drivers 1.1] - Scripts , Alter table
Hortonworks 2.5 - SparkSql1.6[ADS default drivers 1.1] - Alter table
Verified in ADS v19.0.0-alpha-8. Reserved keywords now work fine in Create, Alter UI and other Visual Editors
Verified in ADS v19.0.0-alpha-8. Reserved keywords now work fine in Create, Alter UI and other Visual Editors
Issue #13876 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 19.0.0-dev-21 |
No time estimate |
2 issue links |
relates to #13877
Issue #13877Alter Table- Script generated in Preview SQL- TableName and ColumnName should be in backticks |
relates to #14688
Issue #14688Create a table/view with numaric characters -> java.sql.SQLException: [Simba][ImpalaJDBCDriver] |
Take simple example, Execute below script in Query analyzer
Here select is reserved keyword , since it is with backticks query succeeds.
But in ADS, go to table select , try to expand the column in tree node you will observed exception.
Exception :
org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 1:19 extraneous input 'select' expecting EOF near '<EOF>'