[jira] [Updated] (HIVE-1537) Allow users to specify LOCATION in CREATE DATABASE statement

2011-07-08 Thread Thiruvel Thirumoolan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thiruvel Thirumoolan updated HIVE-1537:
---

Attachment: HIVE-1537_3.patch

Uploading patch that was reviewed.

 Allow users to specify LOCATION in CREATE DATABASE statement
 

 Key: HIVE-1537
 URL: https://issues.apache.org/jira/browse/HIVE-1537
 Project: Hive
  Issue Type: New Feature
  Components: Metastore
Reporter: Carl Steinbach
Assignee: Thiruvel Thirumoolan
 Attachments: HIVE-1537.patch, HIVE-1537_3.patch, 
 hive-1537.metastore.part.patch




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-1537) Allow users to specify LOCATION in CREATE DATABASE statement

2011-07-08 Thread Thiruvel Thirumoolan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thiruvel Thirumoolan updated HIVE-1537:
---

 Tags: database
Fix Version/s: 0.8.0
Affects Version/s: 0.8.0
 Release Note: 
Allow users to create database at a specific location. All tables created with 
that database will have their table-directory under the location.

Usage:
create database dbname location path;
   Status: Patch Available  (was: Open)

Patch reviewed @ https://reviews.apache.org/r/949/diff/

 Allow users to specify LOCATION in CREATE DATABASE statement
 

 Key: HIVE-1537
 URL: https://issues.apache.org/jira/browse/HIVE-1537
 Project: Hive
  Issue Type: New Feature
  Components: Metastore
Affects Versions: 0.8.0
Reporter: Carl Steinbach
Assignee: Thiruvel Thirumoolan
 Fix For: 0.8.0

 Attachments: HIVE-1537.patch, HIVE-1537_3.patch, 
 hive-1537.metastore.part.patch




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HIVE-1537) Allow users to specify LOCATION in CREATE DATABASE statement

2011-07-08 Thread Amareshwari Sriramadasu (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13061852#comment-13061852
 ] 

Amareshwari Sriramadasu commented on HIVE-1537:
---

+1
Running tests.


 Allow users to specify LOCATION in CREATE DATABASE statement
 

 Key: HIVE-1537
 URL: https://issues.apache.org/jira/browse/HIVE-1537
 Project: Hive
  Issue Type: New Feature
  Components: Metastore
Affects Versions: 0.8.0
Reporter: Carl Steinbach
Assignee: Thiruvel Thirumoolan
 Fix For: 0.8.0

 Attachments: HIVE-1537.patch, HIVE-1537_3.patch, 
 hive-1537.metastore.part.patch




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-2005) Implement BETWEEN operator

2011-07-08 Thread Navis (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Navis updated HIVE-2005:


Attachment: HIVE-2005.1.patch

This is a minimal patch for BETWEEN operator which was enough for my project. 

target/left/right expressions are all limited to 'AtomicExpression'(in Hive.g). 
Might be improved if other cases would be needed.

 Implement BETWEEN operator
 --

 Key: HIVE-2005
 URL: https://issues.apache.org/jira/browse/HIVE-2005
 Project: Hive
  Issue Type: New Feature
  Components: Query Processor
Reporter: Carl Steinbach
Assignee: Carl Steinbach
 Attachments: HIVE-2005.1.patch


 Reference: 
 http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#operator_between

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-2253) Merge failing of join tree in exceptional case

2011-07-08 Thread Navis (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Navis updated HIVE-2253:


Status: Patch Available  (was: Open)

minor fix.

 Merge failing of join tree in exceptional case
 --

 Key: HIVE-2253
 URL: https://issues.apache.org/jira/browse/HIVE-2253
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Affects Versions: 0.7.0
 Environment: hadoop 0.20.2, hive 0.7.0
Reporter: Navis
Priority: Minor
 Attachments: HIVE-2253.2.patch, HIVE-2253.3.patch, HIVE-2253.patch


 In some very exceptional cases, SemanticAnayzer fails to merge join tree. 
 Example is below.
 create table a (val1 int, val2 int)
 create table b (val1 int, val2 int)
 create table c (val1 int, val2 int)
 create table d (val1 int, val2 int)
 create table e (val1 int, val2 int)
 1. all same(single) join key -- one MR, good
 select * from a join b on a.val1=b.val1 join c on a.val1=c.val1 join d on 
 a.val1=d.val1 join e on a.val1=e.val1
 2. two join keys -- expected to have two MR, but resulted to three MR
 select * from a join b on a.val1=b.val1 join c on a.val1=c.val1 join d on 
 a.val1=d.val1 join e on a.val2=e.val2
 3. by changing the join order, we could attain two MR as first-expectation.
 select * from a join e on a.val2=e.val2 join c on a.val1=c.val1 join d on 
 a.val1=d.val1 join b on a.val1=b.val1

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




Re: Review Request: HIVE-2210: Add ALTER VIEW RENAME support

2011-07-08 Thread Charles Chen

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

(Updated 2011-07-08 15:27:41.458614)


Review request for hive.


Changes
---

Fixed changes in comments


Summary
---

https://issues.apache.org/jira/browse/HIVE-2210


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


Diffs (updated)
-

  
http://svn.apache.org/repos/asf/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/queries/clientnegative/alter_view_failure8.q
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/queries/clientnegative/alter_view_failure9.q
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/queries/clientpositive/alter_view_rename.q
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientnegative/alter_view_failure8.q.out
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientnegative/alter_view_failure9.q.out
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/alter_view_rename.q.out
 PRE-CREATION 

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


Testing
---

Relevant unit tests looked ok


Thanks,

Charles



[jira] [Commented] (HIVE-2210) ALTER VIEW RENAME

2011-07-08 Thread jirapos...@reviews.apache.org (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062013#comment-13062013
 ] 

jirapos...@reviews.apache.org commented on HIVE-2210:
-


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

(Updated 2011-07-08 15:27:41.458614)


Review request for hive.


Changes
---

Fixed changes in comments


Summary
---

https://issues.apache.org/jira/browse/HIVE-2210


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


Diffs (updated)
-

  
http://svn.apache.org/repos/asf/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java
 1144352 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/queries/clientnegative/alter_view_failure8.q
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/queries/clientnegative/alter_view_failure9.q
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/queries/clientpositive/alter_view_rename.q
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientnegative/alter_view_failure8.q.out
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientnegative/alter_view_failure9.q.out
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/alter_view_rename.q.out
 PRE-CREATION 

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


Testing
---

Relevant unit tests looked ok


Thanks,

Charles



 ALTER VIEW RENAME
 -

 Key: HIVE-2210
 URL: https://issues.apache.org/jira/browse/HIVE-2210
 Project: Hive
  Issue Type: Improvement
  Components: Query Processor
Affects Versions: 0.6.0
Reporter: John Sichi
Assignee: Charles Chen
 Attachments: HIVE-2210v0.patch


 ALTER TABLE RENAME cannot be used on a view; we should support ALTER VIEW 
 RENAME.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-2210) ALTER VIEW RENAME

2011-07-08 Thread Charles Chen (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Chen updated HIVE-2210:
---

Attachment: HIVE-2210v1.patch

 ALTER VIEW RENAME
 -

 Key: HIVE-2210
 URL: https://issues.apache.org/jira/browse/HIVE-2210
 Project: Hive
  Issue Type: Improvement
  Components: Query Processor
Affects Versions: 0.6.0
Reporter: John Sichi
Assignee: Charles Chen
 Attachments: HIVE-2210v0.patch, HIVE-2210v1.patch


 ALTER TABLE RENAME cannot be used on a view; we should support ALTER VIEW 
 RENAME.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2274) Compute table statistics in CREATE TABLE AS

2011-07-08 Thread Greg Dingle (JIRA)
Compute table statistics in CREATE TABLE AS
---

 Key: HIVE-2274
 URL: https://issues.apache.org/jira/browse/HIVE-2274
 Project: Hive
  Issue Type: Improvement
  Components: Serializers/Deserializers, Statistics
Reporter: Greg Dingle
Priority: Minor


set hive.stats.autogather=true only applies to partitions created by INSERT 
OVERWRITE. It would be better to compute them anytime a table is created. 

see: https://cwiki.apache.org/Hive/statsdev.html#StatsDev-NewlyCreatedTables

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




HIVE-2219

2011-07-08 Thread John Sichi
I'm getting failures in these two tests after picking up the commit for that 
JIRA issue.

drop_multi_partitions.q
escape1.q

Passes with r1143233, fails with r1143508.

Since the change passed tests for Paul before commit, maybe something 
non-deterministic?

Example failure from escape1.q is below.

JVS



[junit] Begin query: escape1.q
[junit] Copying file: 
file:/data/users/jsichi/open/test-trunk/data/files/escapetest.txt
[junit] diff -a -I file: -I pfile: -I hdfs: -I /tmp/ -I invalidscheme: -I 
lastUpdateTime -I lastAccessTime -I [Oo]wner -I CreateTime -I LastAccessTime -I 
Location -I transient_lastDdlTime -I last_modified_ -I 
java.lang.RuntimeException -I at org -I at sun -I at java -I at junit -I Caused 
by: -I LOCK_QUERYID: -I grantTime -I [.][.][.] [0-9]* more -I USING 'java -cp 
/data/users/jsichi/open/test-trunk/build/ql/test/logs/clientpositive/escape1.q.out
 
/data/users/jsichi/open/test-trunk/ql/src/test/results/clientpositive/escape1.q.out
[junit] junit.framework.AssertionFailedError: Client execution results 
failed with error code = 1
[junit] See build/ql/tmp/hive.log, or try ant test ... 
-Dtest.silent=false to get more logs.
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at 
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_escape1(TestCliDriver.java:129)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:154)
[junit] at junit.framework.TestCase.runBare(TestCase.java:127)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:422)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:931)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:785)
[junit] 1187a1188,1312
[junit]  POSTHOOK: Output: default@escape1@ds=1/part= 
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=!
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=$
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%00
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%02
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%03
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%04
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%05
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%06
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%07
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%08
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%09
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%0B
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%0C
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%0E
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%0F
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%10
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%11
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%12
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%13
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%14
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%15
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%16
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%17
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%18
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%19
[junit] Exception: Client execution results failed with error code = 1
[junit] See build/ql/tmp/hive.log, or try ant test ... 
-Dtest.silent=false to get more logs.
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%1A
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%1B
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%1C
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%1D
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%1E
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%1F
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%22
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%23
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%25
[junit]  POSTHOOK: Output: 

[jira] [Updated] (HIVE-2045) TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() throws Null Pointer Exception in some cases

2011-07-08 Thread John Sichi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Sichi updated HIVE-2045:
-

   Resolution: Fixed
Fix Version/s: 0.8.0
 Hadoop Flags: [Reviewed]
   Status: Resolved  (was: Patch Available)

Committed.  Thanks Chinna!


 TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() throws Null 
 Pointer Exception in some cases
 --

 Key: HIVE-2045
 URL: https://issues.apache.org/jira/browse/HIVE-2045
 Project: Hive
  Issue Type: Bug
  Components: Serializers/Deserializers
Affects Versions: 0.7.0
 Environment: Hadoop 0.20.1, Hive0.7.0 and SUSE Linux Enterprise 
 Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5).
Reporter: Chinna Rao Lalam
Assignee: Chinna Rao Lalam
 Fix For: 0.8.0

 Attachments: HIVE-2045.patch


 1) In TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() is doing 
 null check for the tokenizer.
 If tokenizer is null, fillTokenizer() method is called to get the tokenizer 
 object. But fillTokenizer() method also can update the tokenizer with NULL , 
 so NULL check should be done before using the tokenizer.
 2) Also improved some logging in TCTLSeparatedProtocol.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HIVE-2210) ALTER VIEW RENAME

2011-07-08 Thread John Sichi (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062103#comment-13062103
 ] 

John Sichi commented on HIVE-2210:
--

+1.  Will commit when tests pass.


 ALTER VIEW RENAME
 -

 Key: HIVE-2210
 URL: https://issues.apache.org/jira/browse/HIVE-2210
 Project: Hive
  Issue Type: Improvement
  Components: Query Processor
Affects Versions: 0.6.0
Reporter: John Sichi
Assignee: Charles Chen
 Attachments: HIVE-2210v0.patch, HIVE-2210v1.patch


 ALTER TABLE RENAME cannot be used on a view; we should support ALTER VIEW 
 RENAME.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




RE: HIVE-2219

2011-07-08 Thread Sohan Jain
Sorry about this.  I did not update the patch on JIRA to use the latest 
accepted version from ReviewBoard.  The patch on ReviewBoard works and tests 
fine, but the one on JIRA does not.  It looks like the JIRA patch was the one 
committed, though.  I'll work with Paul to fix this.

-Sohan

-Original Message-
From: John Sichi 
Sent: Friday, July 08, 2011 11:28 AM
To: Sohan Jain; Paul Yang
Cc: dev@hive.apache.org
Subject: HIVE-2219

I'm getting failures in these two tests after picking up the commit for that 
JIRA issue.

drop_multi_partitions.q
escape1.q

Passes with r1143233, fails with r1143508.

Since the change passed tests for Paul before commit, maybe something 
non-deterministic?

Example failure from escape1.q is below.

JVS



[junit] Begin query: escape1.q
[junit] Copying file: 
file:/data/users/jsichi/open/test-trunk/data/files/escapetest.txt
[junit] diff -a -I file: -I pfile: -I hdfs: -I /tmp/ -I invalidscheme: -I 
lastUpdateTime -I lastAccessTime -I [Oo]wner -I CreateTime -I LastAccessTime -I 
Location -I transient_lastDdlTime -I last_modified_ -I 
java.lang.RuntimeException -I at org -I at sun -I at java -I at junit -I Caused 
by: -I LOCK_QUERYID: -I grantTime -I [.][.][.] [0-9]* more -I USING 'java -cp 
/data/users/jsichi/open/test-trunk/build/ql/test/logs/clientpositive/escape1.q.out
 
/data/users/jsichi/open/test-trunk/ql/src/test/results/clientpositive/escape1.q.out
[junit] junit.framework.AssertionFailedError: Client execution results 
failed with error code = 1
[junit] See build/ql/tmp/hive.log, or try ant test ... 
-Dtest.silent=false to get more logs.
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at 
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_escape1(TestCliDriver.java:129)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:154)
[junit] at junit.framework.TestCase.runBare(TestCase.java:127)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:422)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:931)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:785)
[junit] 1187a1188,1312
[junit]  POSTHOOK: Output: default@escape1@ds=1/part= 
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=!
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=$
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%00
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%02
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%03
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%04
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%05
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%06
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%07
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%08
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%09
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%0B
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%0C
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%0E
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%0F
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%10
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%11
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%12
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%13
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%14
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%15
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%16
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%17
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%18
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%19
[junit] Exception: Client execution results failed with error code = 1
[junit] See build/ql/tmp/hive.log, or try ant test ... 
-Dtest.silent=false to get more logs.
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%1A
[junit]  POSTHOOK: Output: default@escape1@ds=1/part=%1B
[junit]  POSTHOOK: 

[jira] [Commented] (HIVE-2219) Make alter table drop partition more efficient

2011-07-08 Thread John Sichi (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062132#comment-13062132
 ] 

John Sichi commented on HIVE-2219:
--

Since this patch already got committed, I would recommend opening a new JIRA 
issue to amend it.

 Make alter table drop partition more efficient
 

 Key: HIVE-2219
 URL: https://issues.apache.org/jira/browse/HIVE-2219
 Project: Hive
  Issue Type: Improvement
  Components: Query Processor
Reporter: Sohan Jain
Assignee: Sohan Jain
 Fix For: 0.8.0

 Attachments: HIVE-2219.1.patch, HIVE-2219.2.patch


 The current function dropTable() that handles dropping multiple partitions is 
 somewhat inefficient.  For each partition you want to drop, it loops through 
 each partition in the table to see if the partition exists.  This is an 
 _O(mn)_ operation, where _m_ is the number of partitions to drop, and _n_ is 
 the number of partitions in the table.  The running time of this function can 
 be improved, which is useful for tables with many partitions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




Build failed in Jenkins: Hive-trunk-h0.21 #815

2011-07-08 Thread Apache Jenkins Server
See https://builds.apache.org/job/Hive-trunk-h0.21/815/

--
[...truncated 31528 lines...]
[junit] OK
[junit] PREHOOK: query: select count(1) as cnt from testhivedrivertable
[junit] PREHOOK: type: QUERY
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: 
file:/tmp/hudson/hive_2011-07-08_12-49-48_622_5699890195021354738/-mr-1
[junit] Total MapReduce jobs = 1
[junit] Launching Job 1 out of 1
[junit] Number of reduce tasks determined at compile time: 1
[junit] In order to change the average load for a reducer (in bytes):
[junit]   set hive.exec.reducers.bytes.per.reducer=number
[junit] In order to limit the maximum number of reducers:
[junit]   set hive.exec.reducers.max=number
[junit] In order to set a constant number of reducers:
[junit]   set mapred.reduce.tasks=number
[junit] Job running in-process (local Hadoop)
[junit] Hadoop job information for null: number of mappers: 0; number of 
reducers: 0
[junit] 2011-07-08 12:49:51,711 null map = 100%,  reduce = 100%
[junit] Ended Job = job_local_0001
[junit] POSTHOOK: query: select count(1) as cnt from testhivedrivertable
[junit] POSTHOOK: type: QUERY
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: 
file:/tmp/hudson/hive_2011-07-08_12-49-48_622_5699890195021354738/-mr-1
[junit] OK
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: default@testhivedrivertable
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] Hive history 
file=https://builds.apache.org/job/Hive-trunk-h0.21/ws/hive/build/service/tmp/hive_job_log_hudson_201107081249_87632338.txt
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] OK
[junit] PREHOOK: query: create table testhivedrivertable (num int)
[junit] PREHOOK: type: CREATETABLE
[junit] POSTHOOK: query: create table testhivedrivertable (num int)
[junit] POSTHOOK: type: CREATETABLE
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] PREHOOK: query: load data local inpath 
'https://builds.apache.org/job/Hive-trunk-h0.21/ws/hive/data/files/kv1.txt' 
into table testhivedrivertable
[junit] PREHOOK: type: LOAD
[junit] PREHOOK: Output: default@testhivedrivertable
[junit] Copying data from 
https://builds.apache.org/job/Hive-trunk-h0.21/ws/hive/data/files/kv1.txt
[junit] Loading data to table default.testhivedrivertable
[junit] POSTHOOK: query: load data local inpath 
'https://builds.apache.org/job/Hive-trunk-h0.21/ws/hive/data/files/kv1.txt' 
into table testhivedrivertable
[junit] POSTHOOK: type: LOAD
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] PREHOOK: query: select * from testhivedrivertable limit 10
[junit] PREHOOK: type: QUERY
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: 
file:/tmp/hudson/hive_2011-07-08_12-49-53_189_8054855449829604209/-mr-1
[junit] POSTHOOK: query: select * from testhivedrivertable limit 10
[junit] POSTHOOK: type: QUERY
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: 
file:/tmp/hudson/hive_2011-07-08_12-49-53_189_8054855449829604209/-mr-1
[junit] OK
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: default@testhivedrivertable
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] Hive history 
file=https://builds.apache.org/job/Hive-trunk-h0.21/ws/hive/build/service/tmp/hive_job_log_hudson_201107081249_1326788376.txt
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] OK
[junit] PREHOOK: query: create table testhivedrivertable (num int)
[junit] PREHOOK: type: CREATETABLE
[junit] POSTHOOK: query: create table testhivedrivertable (num int)
[junit] POSTHOOK: type: CREATETABLE
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] PREHOOK: Input: 

[jira] [Commented] (HIVE-2268) CREATE.. TABLE.. LIKE should not inherit the original owner of the table.

2011-07-08 Thread John Sichi (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062149#comment-13062149
 ] 

John Sichi commented on HIVE-2268:
--

Agree, the owner should be the person executing the CREATE TABLE LIKE command.

 CREATE.. TABLE.. LIKE should not inherit the original owner of the table.
 -

 Key: HIVE-2268
 URL: https://issues.apache.org/jira/browse/HIVE-2268
 Project: Hive
  Issue Type: Bug
  Components: Metastore, Security
Affects Versions: 0.7.0, 0.7.1, 0.8.0
Reporter: Esteban Gutierrez
  Labels: create, ddl, table

 When a new table is created by using CREATE.. TABLE.. LIKE.. the new table 
 inherits the existing owner of the table, this is issue is potentially 
 conflicting for multiuser environments where Hive authorization is planned 
 for future use.
 -- alice creates table 
 CREATE EXTERNAL TABLE foo(bar double)
 ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'
 STORED AS TEXTFILE LOCATION '/user/alice/foo';
 -- table owner is alice as expected
 hive DESCRIBE EXTENDED foo;
 OK
 bar double  
  
 Detailed Table Information  Table(tableName:foo, dbName:default, 
 {color:red} owner:alice {color}, createTime:1309996190, lastAccessTime:0, 
 retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:bar, type:double, 
 comment:null)], location:hdfs://localhost/user/alice/foo, 
 inputFormat:org.apache.hadoop.mapred.TextInputFormat, 
 outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, 
 compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, 
 serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, 
 parameters:{serialization.format=,, field.delim=,, line.delim=   
 }), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[], 
 parameters:{EXTERNAL=TRUE, transient_lastDdlTime=1309996190}, 
 viewOriginalText:null, viewExpandedText:null, tableType:EXTERNAL_TABLE)  
 -- bob calls CREATE..TABLE..LIKE
 CREATE TABLE foo_like LIKE foo;
 -- bob created a new table using like but the owner stills alice
 -- but the expected is owner:bob
 hive  DESCRIBE EXTENDED foo_like;
 OK
 bar double  
  
 Detailed Table Information  Table(tableName:foo_like, dbName:default, 
 {color:red} owner:alice {color}, createTime:1309996554, lastAccessTime:0, 
 retention:0, sd:StorageDescriptor(cols:[FieldSchema(name:bar, type:double, 
 comment:null)], location:hdfs://localhost/user/hive/warehouse/foo_like, 
 inputFormat:org.apache.hadoop.mapred.TextInputFormat, 
 outputFormat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat, 
 compressed:false, numBuckets:-1, serdeInfo:SerDeInfo(name:null, 
 serializationLib:org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, 
 parameters:{serialization.format=,, field.delim=,, line.delim=  
 }), bucketCols:[], sortCols:[], parameters:{}), partitionKeys:[], 
 parameters:{transient_lastDdlTime=1309996554}, viewOriginalText:null, 
 viewExpandedText:null, tableType:MANAGED_TABLE)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2275) Revert HIVE-2219 and apply correct patch to improve the efficiency of dropping multiple partitions

2011-07-08 Thread Sohan Jain (JIRA)
Revert HIVE-2219 and apply correct patch to improve the efficiency of dropping 
multiple partitions
--

 Key: HIVE-2275
 URL: https://issues.apache.org/jira/browse/HIVE-2275
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Reporter: Sohan Jain
Assignee: Sohan Jain


HIVE-2219 applied an incorrect patch that fails unit tests.  This patch reverts 
those changes and adds the intended changes to improve the efficiency of 
dropping multiple partitions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-2275) Revert HIVE-2219 and apply correct patch to improve the efficiency of dropping multiple partitions

2011-07-08 Thread Sohan Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sohan Jain updated HIVE-2275:
-

Attachment: HIVE-2275.1.patch

 Revert HIVE-2219 and apply correct patch to improve the efficiency of 
 dropping multiple partitions
 --

 Key: HIVE-2275
 URL: https://issues.apache.org/jira/browse/HIVE-2275
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Reporter: Sohan Jain
Assignee: Sohan Jain
 Attachments: HIVE-2275.1.patch


 HIVE-2219 applied an incorrect patch that fails unit tests.  This patch 
 reverts those changes and adds the intended changes to improve the efficiency 
 of dropping multiple partitions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-2275) Revert HIVE-2219 and apply correct patch to improve the efficiency of dropping multiple partitions

2011-07-08 Thread Sohan Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sohan Jain updated HIVE-2275:
-

Status: Patch Available  (was: Open)

 Revert HIVE-2219 and apply correct patch to improve the efficiency of 
 dropping multiple partitions
 --

 Key: HIVE-2275
 URL: https://issues.apache.org/jira/browse/HIVE-2275
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Reporter: Sohan Jain
Assignee: Sohan Jain
 Attachments: HIVE-2275.1.patch


 HIVE-2219 applied an incorrect patch that fails unit tests.  This patch 
 reverts those changes and adds the intended changes to improve the efficiency 
 of dropping multiple partitions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HIVE-2219) Make alter table drop partition more efficient

2011-07-08 Thread Sohan Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062167#comment-13062167
 ] 

Sohan Jain commented on HIVE-2219:
--

Ok, please refer to HIVE-2275

 Make alter table drop partition more efficient
 

 Key: HIVE-2219
 URL: https://issues.apache.org/jira/browse/HIVE-2219
 Project: Hive
  Issue Type: Improvement
  Components: Query Processor
Reporter: Sohan Jain
Assignee: Sohan Jain
 Fix For: 0.8.0

 Attachments: HIVE-2219.1.patch, HIVE-2219.2.patch


 The current function dropTable() that handles dropping multiple partitions is 
 somewhat inefficient.  For each partition you want to drop, it loops through 
 each partition in the table to see if the partition exists.  This is an 
 _O(mn)_ operation, where _m_ is the number of partitions to drop, and _n_ is 
 the number of partitions in the table.  The running time of this function can 
 be improved, which is useful for tables with many partitions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Resolved] (HIVE-2194) Add actions for alter table and alter partition events for metastore event listeners

2011-07-08 Thread Paul Yang (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Yang resolved HIVE-2194.
-

   Resolution: Fixed
Fix Version/s: 0.8.0

Committed. Thanks Sohan!

 Add actions for alter table and alter partition events for metastore event 
 listeners
 

 Key: HIVE-2194
 URL: https://issues.apache.org/jira/browse/HIVE-2194
 Project: Hive
  Issue Type: Improvement
  Components: Metastore
Reporter: Sohan Jain
Assignee: Sohan Jain
 Fix For: 0.8.0

 Attachments: HIVE-2194.1.patch, HIVE-2194.3.patch


 HIVE-2038 introduced the MetaStoreEventListener abstract class that defines 
 actions to be performed after particular events on a metastore.  Improve upon 
 that class by adding events to be performed on alter table and alter 
 partition actions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HIVE-2219) Make alter table drop partition more efficient

2011-07-08 Thread Paul Yang (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062179#comment-13062179
 ] 

Paul Yang commented on HIVE-2219:
-

I likely mixed up the RB and JIRA versions - looking at HIVE-2275 now.

 Make alter table drop partition more efficient
 

 Key: HIVE-2219
 URL: https://issues.apache.org/jira/browse/HIVE-2219
 Project: Hive
  Issue Type: Improvement
  Components: Query Processor
Reporter: Sohan Jain
Assignee: Sohan Jain
 Fix For: 0.8.0

 Attachments: HIVE-2219.1.patch, HIVE-2219.2.patch


 The current function dropTable() that handles dropping multiple partitions is 
 somewhat inefficient.  For each partition you want to drop, it loops through 
 each partition in the table to see if the partition exists.  This is an 
 _O(mn)_ operation, where _m_ is the number of partitions to drop, and _n_ is 
 the number of partitions in the table.  The running time of this function can 
 be improved, which is useful for tables with many partitions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Assigned] (HIVE-1218) CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view

2011-07-08 Thread Charles Chen (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Chen reassigned HIVE-1218:
--

Assignee: Charles Chen  (was: John Sichi)

 CREATE TABLE t LIKE some_view should create a new empty base table, but 
 instead creates a copy of view
 --

 Key: HIVE-1218
 URL: https://issues.apache.org/jira/browse/HIVE-1218
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.5.0
Reporter: John Sichi
Assignee: Charles Chen

 I think it should copy only the column definitions from the view metadata.  
 Currently it is copying the entire descriptor, resulting in a new view 
 instead of a new base table.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




Review Request: HIVE-1219: CREATE TABLE LIKE view

2011-07-08 Thread Charles Chen

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

Review request for hive.


Summary
---

https://issues.apache.org/jira/browse/HIVE-1218


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


Diffs
-

  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
 1144394 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
 1144394 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableLikeDesc.java
 1144394 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/queries/clientpositive/create_like_view.q
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/create_like_view.q.out
 PRE-CREATION 

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


Testing
---

Seems to work


Thanks,

Charles



[jira] [Commented] (HIVE-1218) CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view

2011-07-08 Thread jirapos...@reviews.apache.org (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062199#comment-13062199
 ] 

jirapos...@reviews.apache.org commented on HIVE-1218:
-


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

Review request for hive.


Summary
---

https://issues.apache.org/jira/browse/HIVE-1218


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


Diffs
-

  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
 1144394 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
 1144394 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableLikeDesc.java
 1144394 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/queries/clientpositive/create_like_view.q
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/test/results/clientpositive/create_like_view.q.out
 PRE-CREATION 

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


Testing
---

Seems to work


Thanks,

Charles



 CREATE TABLE t LIKE some_view should create a new empty base table, but 
 instead creates a copy of view
 --

 Key: HIVE-1218
 URL: https://issues.apache.org/jira/browse/HIVE-1218
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.5.0
Reporter: John Sichi
Assignee: Charles Chen

 I think it should copy only the column definitions from the view metadata.  
 Currently it is copying the entire descriptor, resulting in a new view 
 instead of a new base table.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-1218) CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view

2011-07-08 Thread Charles Chen (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Chen updated HIVE-1218:
---

Status: Patch Available  (was: Open)

 CREATE TABLE t LIKE some_view should create a new empty base table, but 
 instead creates a copy of view
 --

 Key: HIVE-1218
 URL: https://issues.apache.org/jira/browse/HIVE-1218
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.5.0
Reporter: John Sichi
Assignee: Charles Chen
 Attachments: HIVE-1218v0.patch


 I think it should copy only the column definitions from the view metadata.  
 Currently it is copying the entire descriptor, resulting in a new view 
 instead of a new base table.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-1218) CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view

2011-07-08 Thread Charles Chen (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Chen updated HIVE-1218:
---

Attachment: HIVE-1218v0.patch

 CREATE TABLE t LIKE some_view should create a new empty base table, but 
 instead creates a copy of view
 --

 Key: HIVE-1218
 URL: https://issues.apache.org/jira/browse/HIVE-1218
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Affects Versions: 0.5.0
Reporter: John Sichi
Assignee: Charles Chen
 Attachments: HIVE-1218v0.patch


 I think it should copy only the column definitions from the view metadata.  
 Currently it is copying the entire descriptor, resulting in a new view 
 instead of a new base table.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-2194) Add actions for alter table and alter partition events for metastore event listeners

2011-07-08 Thread Sohan Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sohan Jain updated HIVE-2194:
-

Attachment: HIVE-2194.4.patch

 Add actions for alter table and alter partition events for metastore event 
 listeners
 

 Key: HIVE-2194
 URL: https://issues.apache.org/jira/browse/HIVE-2194
 Project: Hive
  Issue Type: Improvement
  Components: Metastore
Reporter: Sohan Jain
Assignee: Sohan Jain
 Fix For: 0.8.0

 Attachments: HIVE-2194.1.patch, HIVE-2194.3.patch, HIVE-2194.4.patch


 HIVE-2038 introduced the MetaStoreEventListener abstract class that defines 
 actions to be performed after particular events on a metastore.  Improve upon 
 that class by adding events to be performed on alter table and alter 
 partition actions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HIVE-2194) Add actions for alter table and alter partition events for metastore event listeners

2011-07-08 Thread Paul Yang (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062239#comment-13062239
 ] 

Paul Yang commented on HIVE-2194:
-

Sohan just mentioned that there was a mismatch between the RB and JIRA versions 
for this one too. This will require another patch.

 Add actions for alter table and alter partition events for metastore event 
 listeners
 

 Key: HIVE-2194
 URL: https://issues.apache.org/jira/browse/HIVE-2194
 Project: Hive
  Issue Type: Improvement
  Components: Metastore
Reporter: Sohan Jain
Assignee: Sohan Jain
 Fix For: 0.8.0

 Attachments: HIVE-2194.1.patch, HIVE-2194.3.patch, HIVE-2194.4.patch


 HIVE-2038 introduced the MetaStoreEventListener abstract class that defines 
 actions to be performed after particular events on a metastore.  Improve upon 
 that class by adding events to be performed on alter table and alter 
 partition actions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2276) Fix Inconsistency between RB and JIRA patches for HIVE-2194

2011-07-08 Thread Sohan Jain (JIRA)
Fix Inconsistency between RB and JIRA patches for HIVE-2194
---

 Key: HIVE-2276
 URL: https://issues.apache.org/jira/browse/HIVE-2276
 Project: Hive
  Issue Type: Bug
Reporter: Sohan Jain
Assignee: Sohan Jain
 Attachments: HIVE-2276.1.patch

The RB and JIRA patches for HIVE-2194 were out of sync.  An outdated patch for 
HIVE-2194 was committed.  This patch updates that patch to include the changes 
from RB.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-2276) Fix Inconsistency between RB and JIRA patches for HIVE-2194

2011-07-08 Thread Sohan Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sohan Jain updated HIVE-2276:
-

Attachment: HIVE-2276.1.patch

 Fix Inconsistency between RB and JIRA patches for HIVE-2194
 ---

 Key: HIVE-2276
 URL: https://issues.apache.org/jira/browse/HIVE-2276
 Project: Hive
  Issue Type: Bug
Reporter: Sohan Jain
Assignee: Sohan Jain
 Attachments: HIVE-2276.1.patch


 The RB and JIRA patches for HIVE-2194 were out of sync.  An outdated patch 
 for HIVE-2194 was committed.  This patch updates that patch to include the 
 changes from RB.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HIVE-2276) Fix Inconsistency between RB and JIRA patches for HIVE-2194

2011-07-08 Thread Sohan Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sohan Jain updated HIVE-2276:
-

Status: Patch Available  (was: Open)

 Fix Inconsistency between RB and JIRA patches for HIVE-2194
 ---

 Key: HIVE-2276
 URL: https://issues.apache.org/jira/browse/HIVE-2276
 Project: Hive
  Issue Type: Bug
Reporter: Sohan Jain
Assignee: Sohan Jain
 Attachments: HIVE-2276.1.patch


 The RB and JIRA patches for HIVE-2194 were out of sync.  An outdated patch 
 for HIVE-2194 was committed.  This patch updates that patch to include the 
 changes from RB.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




Build failed in Jenkins: Hive-trunk-h0.21 #816

2011-07-08 Thread Apache Jenkins Server
See https://builds.apache.org/job/Hive-trunk-h0.21/816/changes

Changes:

[jvs] HIVE-2045.  TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() 
throws
Null Pointer Exception in some cases.  (Chinna Rao Lalam via jvs)

--
[...truncated 31461 lines...]
[junit] PREHOOK: query: select count(1) as cnt from testhivedrivertable
[junit] PREHOOK: type: QUERY
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: 
file:/tmp/jenkins/hive_2011-07-08_16-11-28_370_5104517320882475112/-mr-1
[junit] Total MapReduce jobs = 1
[junit] Launching Job 1 out of 1
[junit] Number of reduce tasks determined at compile time: 1
[junit] In order to change the average load for a reducer (in bytes):
[junit]   set hive.exec.reducers.bytes.per.reducer=number
[junit] In order to limit the maximum number of reducers:
[junit]   set hive.exec.reducers.max=number
[junit] In order to set a constant number of reducers:
[junit]   set mapred.reduce.tasks=number
[junit] Job running in-process (local Hadoop)
[junit] Hadoop job information for null: number of mappers: 0; number of 
reducers: 0
[junit] 2011-07-08 16:11:31,059 null map = 100%,  reduce = 100%
[junit] Ended Job = job_local_0001
[junit] POSTHOOK: query: select count(1) as cnt from testhivedrivertable
[junit] POSTHOOK: type: QUERY
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: 
file:/tmp/jenkins/hive_2011-07-08_16-11-28_370_5104517320882475112/-mr-1
[junit] OK
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: default@testhivedrivertable
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] Hive history 
file=/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/build/service/tmp/hive_job_log_jenkins_201107081611_687193215.txt
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] OK
[junit] PREHOOK: query: create table testhivedrivertable (num int)
[junit] PREHOOK: type: CREATETABLE
[junit] POSTHOOK: query: create table testhivedrivertable (num int)
[junit] POSTHOOK: type: CREATETABLE
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] PREHOOK: query: load data local inpath 
'/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/data/files/kv1.txt' 
into table testhivedrivertable
[junit] PREHOOK: type: LOAD
[junit] PREHOOK: Output: default@testhivedrivertable
[junit] Copying data from 
file:/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/data/files/kv1.txt
[junit] Loading data to table default.testhivedrivertable
[junit] POSTHOOK: query: load data local inpath 
'/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/data/files/kv1.txt' 
into table testhivedrivertable
[junit] POSTHOOK: type: LOAD
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] PREHOOK: query: select * from testhivedrivertable limit 10
[junit] PREHOOK: type: QUERY
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: 
file:/tmp/jenkins/hive_2011-07-08_16-11-32_452_8768009473974233272/-mr-1
[junit] POSTHOOK: query: select * from testhivedrivertable limit 10
[junit] POSTHOOK: type: QUERY
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: 
file:/tmp/jenkins/hive_2011-07-08_16-11-32_452_8768009473974233272/-mr-1
[junit] OK
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: default@testhivedrivertable
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] Hive history 
file=/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/build/service/tmp/hive_job_log_jenkins_201107081611_595043463.txt
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] OK
[junit] PREHOOK: query: create table testhivedrivertable (num int)
[junit] PREHOOK: type: CREATETABLE
[junit] POSTHOOK: query: create table testhivedrivertable (num int)
[junit] POSTHOOK: type: CREATETABLE
[junit] POSTHOOK: Output: 

[jira] [Commented] (HIVE-2045) TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() throws Null Pointer Exception in some cases

2011-07-08 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062247#comment-13062247
 ] 

Hudson commented on HIVE-2045:
--

Integrated in Hive-trunk-h0.21 #816 (See 
[https://builds.apache.org/job/Hive-trunk-h0.21/816/])
HIVE-2045.  TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() 
throws
Null Pointer Exception in some cases.  (Chinna Rao Lalam via jvs)

jvs : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVNview=revrev=1144418
Files : 
* 
/hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/thrift/TCTLSeparatedProtocol.java
* 
/hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/TestTCTLSeparatedProtocol.java


 TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() throws Null 
 Pointer Exception in some cases
 --

 Key: HIVE-2045
 URL: https://issues.apache.org/jira/browse/HIVE-2045
 Project: Hive
  Issue Type: Bug
  Components: Serializers/Deserializers
Affects Versions: 0.7.0
 Environment: Hadoop 0.20.1, Hive0.7.0 and SUSE Linux Enterprise 
 Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5).
Reporter: Chinna Rao Lalam
Assignee: Chinna Rao Lalam
 Fix For: 0.8.0

 Attachments: HIVE-2045.patch


 1) In TCTLSeparatedProtocol.SimpleTransportTokenizer.nextToken() is doing 
 null check for the tokenizer.
 If tokenizer is null, fillTokenizer() method is called to get the tokenizer 
 object. But fillTokenizer() method also can update the tokenizer with NULL , 
 so NULL check should be done before using the tokenizer.
 2) Also improved some logging in TCTLSeparatedProtocol.java

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Assigned] (HIVE-1078) CREATE VIEW followup: CREATE OR REPLACE

2011-07-08 Thread Charles Chen (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Chen reassigned HIVE-1078:
--

Assignee: Charles Chen  (was: John Sichi)

 CREATE VIEW followup:  CREATE OR REPLACE
 

 Key: HIVE-1078
 URL: https://issues.apache.org/jira/browse/HIVE-1078
 Project: Hive
  Issue Type: Improvement
  Components: Query Processor
Affects Versions: 0.6.0
Reporter: John Sichi
Assignee: Charles Chen

 Currently, replacing a view requires
 DROP VIEW v;
 CREATE VIEW v AS new-definition;
 CREATE OR REPLACE would allow these to be combined into a single operation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




Review Request: HIVE-1078: CREATE VIEW followup: CREATE OR REPLACE

2011-07-08 Thread Charles Chen

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

Review request for hive.


Summary
---

https://issues.apache.org/jira/browse/HIVE-1078


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


Diffs
-

  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
 1144535 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
 1144535 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
 1144535 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateViewDesc.java
 1144535 

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


Testing
---

Unit tests not written yet


Thanks,

Charles



[jira] [Commented] (HIVE-1078) CREATE VIEW followup: CREATE OR REPLACE

2011-07-08 Thread jirapos...@reviews.apache.org (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062272#comment-13062272
 ] 

jirapos...@reviews.apache.org commented on HIVE-1078:
-


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

Review request for hive.


Summary
---

https://issues.apache.org/jira/browse/HIVE-1078


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


Diffs
-

  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
 1144535 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
 1144535 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
 1144535 
  
http://svn.apache.org/repos/asf/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateViewDesc.java
 1144535 

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


Testing
---

Unit tests not written yet


Thanks,

Charles



 CREATE VIEW followup:  CREATE OR REPLACE
 

 Key: HIVE-1078
 URL: https://issues.apache.org/jira/browse/HIVE-1078
 Project: Hive
  Issue Type: Improvement
  Components: Query Processor
Affects Versions: 0.6.0
Reporter: John Sichi
Assignee: Charles Chen

 Currently, replacing a view requires
 DROP VIEW v;
 CREATE VIEW v AS new-definition;
 CREATE OR REPLACE would allow these to be combined into a single operation.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HIVE-2194) Add actions for alter table and alter partition events for metastore event listeners

2011-07-08 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13062296#comment-13062296
 ] 

Hudson commented on HIVE-2194:
--

Integrated in Hive-trunk-h0.21 #817 (See 
[https://builds.apache.org/job/Hive-trunk-h0.21/817/])
Adding files that were missing from the commit for HIVE-2194
HIVE-2194. Add actions for alter table and alter partition events for metastore 
event listeners (Sohan Jain via pauly)

pauly : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVNview=revrev=1144534
Files : 
* 
/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterPartitionEvent.java
* 
/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/events/AlterTableEvent.java

pauly : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVNview=revrev=1144504
Files : 
* 
/hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestMetaStoreEventListener.java
* 
/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
* 
/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreEventListener.java
* 
/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
* 
/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
* 
/hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/DummyListener.java


 Add actions for alter table and alter partition events for metastore event 
 listeners
 

 Key: HIVE-2194
 URL: https://issues.apache.org/jira/browse/HIVE-2194
 Project: Hive
  Issue Type: Improvement
  Components: Metastore
Reporter: Sohan Jain
Assignee: Sohan Jain
 Fix For: 0.8.0

 Attachments: HIVE-2194.1.patch, HIVE-2194.3.patch, HIVE-2194.4.patch


 HIVE-2038 introduced the MetaStoreEventListener abstract class that defines 
 actions to be performed after particular events on a metastore.  Improve upon 
 that class by adding events to be performed on alter table and alter 
 partition actions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




Build failed in Jenkins: Hive-trunk-h0.21 #817

2011-07-08 Thread Apache Jenkins Server
See https://builds.apache.org/job/Hive-trunk-h0.21/817/changes

Changes:

[pauly] Adding files that were missing from the commit for HIVE-2194

[pauly] HIVE-2194. Add actions for alter table and alter partition events for 
metastore event listeners (Sohan Jain via pauly)

--
[...truncated 31527 lines...]
[junit] PREHOOK: query: select count(1) as cnt from testhivedrivertable
[junit] PREHOOK: type: QUERY
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: 
file:/tmp/jenkins/hive_2011-07-08_19-34-18_034_2761281862083546919/-mr-1
[junit] Total MapReduce jobs = 1
[junit] Launching Job 1 out of 1
[junit] Number of reduce tasks determined at compile time: 1
[junit] In order to change the average load for a reducer (in bytes):
[junit]   set hive.exec.reducers.bytes.per.reducer=number
[junit] In order to limit the maximum number of reducers:
[junit]   set hive.exec.reducers.max=number
[junit] In order to set a constant number of reducers:
[junit]   set mapred.reduce.tasks=number
[junit] Job running in-process (local Hadoop)
[junit] Hadoop job information for null: number of mappers: 0; number of 
reducers: 0
[junit] 2011-07-08 19:34:20,954 null map = 100%,  reduce = 100%
[junit] Ended Job = job_local_0001
[junit] POSTHOOK: query: select count(1) as cnt from testhivedrivertable
[junit] POSTHOOK: type: QUERY
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: 
file:/tmp/jenkins/hive_2011-07-08_19-34-18_034_2761281862083546919/-mr-1
[junit] OK
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: default@testhivedrivertable
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] Hive history 
file=/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/build/service/tmp/hive_job_log_jenkins_201107081934_1460954797.txt
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] OK
[junit] PREHOOK: query: create table testhivedrivertable (num int)
[junit] PREHOOK: type: CREATETABLE
[junit] POSTHOOK: query: create table testhivedrivertable (num int)
[junit] POSTHOOK: type: CREATETABLE
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] PREHOOK: query: load data local inpath 
'/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/data/files/kv1.txt' 
into table testhivedrivertable
[junit] PREHOOK: type: LOAD
[junit] PREHOOK: Output: default@testhivedrivertable
[junit] Copying data from 
file:/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/data/files/kv1.txt
[junit] Loading data to table default.testhivedrivertable
[junit] POSTHOOK: query: load data local inpath 
'/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/data/files/kv1.txt' 
into table testhivedrivertable
[junit] POSTHOOK: type: LOAD
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] PREHOOK: query: select * from testhivedrivertable limit 10
[junit] PREHOOK: type: QUERY
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: 
file:/tmp/jenkins/hive_2011-07-08_19-34-22_240_1915981779741194706/-mr-1
[junit] POSTHOOK: query: select * from testhivedrivertable limit 10
[junit] POSTHOOK: type: QUERY
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: 
file:/tmp/jenkins/hive_2011-07-08_19-34-22_240_1915981779741194706/-mr-1
[junit] OK
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] PREHOOK: Input: default@testhivedrivertable
[junit] PREHOOK: Output: default@testhivedrivertable
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] POSTHOOK: Input: default@testhivedrivertable
[junit] POSTHOOK: Output: default@testhivedrivertable
[junit] OK
[junit] Hive history 
file=/x1/jenkins/jenkins-slave/workspace/Hive-trunk-h0.21/hive/build/service/tmp/hive_job_log_jenkins_201107081934_1630158333.txt
[junit] PREHOOK: query: drop table testhivedrivertable
[junit] PREHOOK: type: DROPTABLE
[junit] POSTHOOK: query: drop table testhivedrivertable
[junit] POSTHOOK: type: DROPTABLE
[junit] OK
[junit] PREHOOK: query: create table testhivedrivertable (num int)
[junit] PREHOOK: type: CREATETABLE
[junit] POSTHOOK: query: create table testhivedrivertable (num int)
[junit] POSTHOOK: