× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
anilkalshetti reported 2015-10-19T07:25:33Z  · raghavsingh last modified 2017-01-04T06:30:16Z

Hive- In Alter Table- Clustered By block fields should be enabled


Priority Low
Complexity Unknown
Component Hive
Version 18.0

Aqua Data Studio 17.0.0-rc-18
Build #: 46454
Built on: 2015-Oct-16 10:09:16 PM     
 

Database: Hive 1.2.1
Hortonworks HDP 2.3.0 - Hive 1.2.1
Drivers Link- Hive 1.2.1
[ACID Transactions enabled] 

Issue: Hive- In Alter Table-Storage Tab-  Clustered By block fields should be enabled
 
Steps:
1. Create a Table using below script.
 
CREATE TABLE stock  ( 
symbol     string, 
ymd        string, 
price_open float)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
stored as orc TBLPROPERTIES ('transactional'='true')
GO
 
2. Right click on this table and select 'Alter Table'.
3. In Alter Table, click on Storage Tab,

Observe that-  Clustered By block is disabled.

Expected: This fields should be enabled.
[Number of Buckets displayed as :  -1, when buckets are not applied on table.
This is right behaviour]

4. Using the below script you will be able to alter the table

ALTER TABLE stocks2
CLUSTERED BY (symbol,price_open)
INTO 51 BUCKETS
Go

5. When executed above 'Alter Table..' script in query analyzer,
and again opened 'Alter table' window, under Clustered By block.
Field values from alter table are displayed.
 
-- Alter Table command works properly, and values are reflected.
 
Once again execute the Alter Table command changing buckets value in script to 61.
ALTER TABLE stocks2
CLUSTERED BY (symbol,price_open)
INTO 51 BUCKETS
Go
 
Command executes successfully and the values will be reflected properly.
 
Expected:- Clustered By block fields should be enabled always.

Please refer screenshot1.png and
SQL script file- HiveScript2
6 attachments

Issue #13785

Closed
Fixed
Resolved 2015-10-23T15:54:15Z
 
 
Completion
No due date
Fixed Build ADS 18.0.0-dev-7
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017