-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/16900/
-----------------------------------------------------------
(Updated Feb. 5, 2014, 2:13 a.m.)
Review request for hive.
Changes
-------
skip authorization check for dummy table/databases
Bugs: HIVE-4144
https://issues.apache.org/jira/browse/HIVE-4144
Repository: hive-git
Description
-------
A recent hive-user mailing list conversation asked about having a command to
show the current database.
http://mail-archives.apache.org/mod_mbox/hive-user/201303.mbox/%3CCAMGr+0i+CRY69m3id=DxthmUCWLf0NxpKMCtROb=uauh2va...@mail.gmail.com%3E
MySQL seems to have a command to do so:
{code}
select database();
{code}
http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_database
We should look into having something similar in Hive.
Diffs (updated)
-----
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java 89c9349
ql/src/java/org/apache/hadoop/hive/ql/Driver.java ebc3d7d
ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java 48b7ee1
ql/src/java/org/apache/hadoop/hive/ql/exec/RowSchema.java 1bfcee6
ql/src/java/org/apache/hadoop/hive/ql/exec/mr/ExecDriver.java 54e1dd8
ql/src/java/org/apache/hadoop/hive/ql/hooks/Entity.java 637b3ae
ql/src/java/org/apache/hadoop/hive/ql/io/NullRowsInputFormat.java
PRE-CREATION
ql/src/java/org/apache/hadoop/hive/ql/io/OneNullRowInputFormat.java 8ce1c15
ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java c51e998
ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g 17f3552
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java 59987e3
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/UDFCurrentDB.java
PRE-CREATION
ql/src/test/queries/clientpositive/select_dummy_source.q PRE-CREATION
ql/src/test/queries/clientpositive/udf_current_database.q PRE-CREATION
ql/src/test/results/clientnegative/ptf_negative_DistributeByOrderBy.q.out
d73a0fa
ql/src/test/results/clientnegative/ptf_negative_PartitionBySortBy.q.out
48139f0
ql/src/test/results/clientnegative/select_udtf_alias.q.out 614a18e
ql/src/test/results/clientpositive/select_dummy_source.q.out PRE-CREATION
ql/src/test/results/clientpositive/show_functions.q.out 57c9036
ql/src/test/results/clientpositive/udf_current_database.q.out PRE-CREATION
ql/src/test/results/compiler/errors/invalid_select.q.out af165bb
Diff: https://reviews.apache.org/r/16900/diff/
Testing
-------
Thanks,
Navis Ryu