You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2011/12/16 03:03:48 UTC
svn commit: r1215021 - in /hive/trunk/ql/src:
java/org/apache/hadoop/hive/ql/exec/DDLTask.java
test/results/clientpositive/show_functions.q.out
Author: hashutosh
Date: Fri Dec 16 02:03:48 2011
New Revision: 1215021
URL: http://svn.apache.org/viewvc?rev=1215021&view=rev
Log:
HIVE-1892 : show functions also returns internal operators (Priyadarshini via Ashutosh Chauhan)
Modified:
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
hive/trunk/ql/src/test/results/clientpositive/show_functions.q.out
Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java?rev=1215021&r1=1215020&r2=1215021&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java Fri Dec 16 02:03:48 2011
@@ -2032,6 +2032,8 @@ public class DDLTask extends Task<DDLWor
FileSystem fs = resFile.getFileSystem(conf);
outStream = fs.create(resFile);
SortedSet<String> sortedFuncs = new TreeSet<String>(funcs);
+ // To remove the primitive types
+ sortedFuncs.removeAll(Constants.PrimitiveTypes);
Iterator<String> iterFuncs = sortedFuncs.iterator();
while (iterFuncs.hasNext()) {
Modified: hive/trunk/ql/src/test/results/clientpositive/show_functions.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/show_functions.q.out?rev=1215021&r1=1215020&r2=1215021&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/show_functions.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/show_functions.q.out Fri Dec 16 02:03:48 2011
@@ -28,10 +28,7 @@ asin
assert_true
atan
avg
-bigint
bin
-binary
-boolean
case
ceil
ceiling
@@ -54,7 +51,6 @@ day
dayofmonth
degrees
div
-double
e
elt
ewah_bitmap
@@ -65,7 +61,6 @@ exp
explode
field
find_in_set
-float
floor
from_unixtime
from_utc_timestamp
@@ -79,7 +74,6 @@ in
in_file
index
instr
-int
isnotnull
isnull
json_tuple
@@ -132,7 +126,6 @@ sentences
sign
sin
size
-smallint
space
split
sqrt
@@ -142,14 +135,11 @@ stddev
stddev_pop
stddev_samp
str_to_map
-string
struct
substr
substring
sum
tan
-timestamp
-tinyint
to_date
to_utc_timestamp
trim
@@ -201,7 +191,6 @@ POSTHOOK: type: SHOWFUNCTIONS
assert_true
case
coalesce
-double
e
explode
from_unixtime