hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhuoluo Yang" <zhuoluo....@taobao.com>
Subject Re: Review Request: Add 'show version' command to Hive CLI
Date Wed, 16 Jan 2013 04:44:46 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/8958/
-----------------------------------------------------------

(Updated Jan. 16, 2013, 4:44 a.m.)


Review request for hive, Carl Steinbach and Brock Noland.


Changes
-------

Thanks Brock.
1. Remove the code of eating the stack trace, so the Exception stack trace can be stringified
by DDLTask.execute()
2. Sorry for ignorance of git and shamelessly cloning the code, modity saveVersion.sh to get
git hostname.
3. Add a "hive --version" command.


Description
-------

We add a simple ddl grammar, called "show version".
The version info is generated automatically while compiling.


This addresses bug HIVE-1151.
    https://issues.apache.org/jira/browse/HIVE-1151


Diffs (updated)
-----

  http://svn.apache.org/repos/asf/hive/trunk/bin/ext/version.sh PRE-CREATION 
  http://svn.apache.org/repos/asf/hive/trunk/bin/hive 1433285 
  http://svn.apache.org/repos/asf/hive/trunk/build.xml 1433285 
  http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/HiveVersionAnnotation.java
PRE-CREATION 
  http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
1433285 
  http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
1433285 
  http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
1433285 
  http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
1433285 
  http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java
1433285 
  http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/ShowVersionDesc.java
PRE-CREATION 
  http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/util/HiveVersionInfo.java
PRE-CREATION 
  http://svn.apache.org/repos/asf/hive/trunk/ql/src/saveVersion.sh PRE-CREATION 

Diff: https://reviews.apache.org/r/8958/diff/


Testing
-------

$hive
Hive history file=/tmp/zhuoluo/hive_job_log_zhuoluo_201301152113_1633688174.txt
hive> show version;
OK
0.11.0-SNAPSHOT from 1432865 by zhuoluo on Tue Jan 15 20:58:42 CST 2013
http://svn.apache.org/repos/asf/hive/trunk
Time taken: 0.279 seconds, Fetched: 2 row(s)
hive> 


Thanks,

Zhuoluo Yang


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message