hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r885656 - in /hadoop/hive/trunk: ./ ql/src/java/org/apache/hadoop/hive/ql/exec/ ql/src/test/queries/clientnegative/ ql/src/test/results/clientnegative/
Date Tue, 01 Dec 2009 02:38:36 GMT
Author: namit
Date: Tue Dec  1 02:37:57 2009
New Revision: 885656

URL: http://svn.apache.org/viewvc?rev=885656&view=rev
Log:
HIVE-953 Fix test script_broken_pipe3.q
(Paul Yang via namit)


Modified:
    hadoop/hive/trunk/CHANGES.txt
    hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ScriptOperator.java
    hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe1.q
    hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe2.q
    hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe3.q
    hadoop/hive/trunk/ql/src/test/results/clientnegative/script_broken_pipe2.q.out

Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=885656&r1=885655&r2=885656&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Tue Dec  1 02:37:57 2009
@@ -284,6 +284,9 @@
     HIVE-944 Generate thrift files in queryplan
     (Paul Yang via namit)
 
+    HIVE-953 Fix test script_broken_pipe3.q
+    (Paul Yang via namit)
+
 Release 0.4.0 -  Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ScriptOperator.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ScriptOperator.java?rev=885656&r1=885655&r2=885656&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ScriptOperator.java (original)
+++ hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ScriptOperator.java Tue Dec
 1 02:37:57 2009
@@ -337,7 +337,7 @@
         }
         int exitVal = 0;
         if (scriptPid != null)
-          scriptPid.waitFor();
+          exitVal = scriptPid.waitFor();
         if (exitVal != 0) {
           LOG.error("Script failed with code " + exitVal);
           new_abort = true;

Modified: hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe1.q
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe1.q?rev=885656&r1=885655&r2=885656&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe1.q (original)
+++ hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe1.q Tue Dec  1
02:37:57 2009
@@ -1,2 +1,3 @@
+set hive.exec.script.allow.partial.consumption = false;
 -- Tests exception in ScriptOperator.close() by passing to the operator a small amount of
data
 SELECT TRANSFORM(*) USING 'true' AS a, b, c FROM (SELECT * FROM src LIMIT 1) tmp;

Modified: hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe2.q
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe2.q?rev=885656&r1=885655&r2=885656&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe2.q (original)
+++ hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe2.q Tue Dec  1
02:37:57 2009
@@ -1,2 +1,3 @@
+set hive.exec.script.allow.partial.consumption = false;
 -- Tests exception in ScriptOperator.processOp() by passing extra data needed to fill pipe
buffer
-SELECT TRANSFORM(key, value, key, value, key, value, key, value, key, value, key, value)
USING 'head -n 1' as a,b,c,d FROM src;
+SELECT TRANSFORM(key, value, key, value, key, value, key, value, key, value, key, value,
key, value, key, value, key, value, key, value, key, value, key, value) USING 'true' as a,b,c,d
FROM src;

Modified: hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe3.q
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe3.q?rev=885656&r1=885655&r2=885656&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe3.q (original)
+++ hadoop/hive/trunk/ql/src/test/queries/clientnegative/script_broken_pipe3.q Tue Dec  1
02:37:57 2009
@@ -1,2 +1,3 @@
+set hive.exec.script.allow.partial.consumption = true;
 -- Test to ensure that a script with a bad error code still fails even with partial consumption
 SELECT TRANSFORM(*) USING 'false' AS a, b, c FROM (SELECT * FROM src LIMIT 1) tmp;

Modified: hadoop/hive/trunk/ql/src/test/results/clientnegative/script_broken_pipe2.q.out
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/test/results/clientnegative/script_broken_pipe2.q.out?rev=885656&r1=885655&r2=885656&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/test/results/clientnegative/script_broken_pipe2.q.out (original)
+++ hadoop/hive/trunk/ql/src/test/results/clientnegative/script_broken_pipe2.q.out Tue Dec
 1 02:37:57 2009
@@ -1,6 +1,6 @@
 PREHOOK: query: -- Tests exception in ScriptOperator.processOp() by passing extra data needed
to fill pipe buffer
-SELECT TRANSFORM(key, value, key, value, key, value, key, value, key, value, key, value)
USING 'head -n 1' as a,b,c,d FROM src
+SELECT TRANSFORM(key, value, key, value, key, value, key, value, key, value, key, value,
key, value, key, value, key, value, key, value, key, value, key, value) USING 'true' as a,b,c,d
FROM src
 PREHOOK: type: QUERY
 PREHOOK: Input: default@src
-PREHOOK: Output: file:/data/users/pyang/trunk/VENDOR.hive/trunk/build/ql/tmp/588453066/10000
+PREHOOK: Output: file:/data/users/pyang/script/trunk/VENDOR.hive/trunk/build/ql/tmp/1650258494/10000
 FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask



Mime
View raw message