update statistics for hive table reports ERROR[9200], ERROR[1002]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Released
|
High
|
Barry Fritchman |
Bug Description
>>select count(*) from hive.hive.nation;
(EXPR)
-------
--- 1 row(s) selected.
>>
>>cqd ustat_log 'updstat_hive';
--- SQL operation complete.
>>update statistics log on;
--- SQL operation complete.
>>update statistics for table hive.hive.nation on every column;
*** ERROR[9200] UPDATE STATISTICS for table HIVE.HIVE.NATION encountered an error (1002) from statement Process_Query.
*** ERROR[1002] Catalog HIVESTATS does not exist or has not been registered on node .
*** ERROR[8822] The statement was not prepared.
--- SQL operation failed with errors.
>>update statistics for table hive.hive.mynation on every column;
*** ERROR[9200] UPDATE STATISTICS for table HIVE.HIVE.MYNATION encountered an error (1002) from statement Process_Query.
*** ERROR[1002] Catalog HIVESTATS does not exist or has not been registered on node .
*** ERROR[8822] The statement was not prepared.
--- SQL operation failed with errors.
>>update statistics log off;
--- SQL operation complete.
>>log off;
encountered on workstation, datalake_64_1 v40596
MY_SQROOT=
who@<email address hidden>
JAVA_HOME=
linux=2.
redhat=6.3
Release 0.7.0 (Build release [40596], branch 40596-project/
to reproduce, see attached hive_updstats.tar contents:
1. in hive, create and load tables nation/mynation; see hive_setup and nation.tbl files
2. in sqlci, obey traf.sql
Changed in trafodion: | |
assignee: | nobody → Barry Fritchman (barry-fritchman) |
Changed in trafodion: | |
importance: | High → Medium |
information type: | Proprietary → Public |
Changed in trafodion: | |
status: | New → In Progress |
importance: | Medium → High |
Changed in trafodion: | |
milestone: | none → r1.0 |
Changed in trafodion: | |
milestone: | r1.0 → r1.1 |
The catalog used for storing histograms for a Hive table should be Trafodion instead of hivestats.