hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinna...@huawei.com
Subject Review Request: add support for insert partition overwrite(...) if not exists
Date Wed, 30 Nov 2011 05:27:28 GMT

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

Review request for hive and namit jain.


Summary
-------

INSERT OVERWRITE TABLE X PARTITION (a=b, c=d) IF NOT EXISTS ...
The partition should be created and written if and only if it's not there already. 
Added a check to validate the partition exist or not.


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


Diffs
-----

  trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g 1206077 
  trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java 1206077 
  trunk/ql/src/test/queries/clientpositive/insert1_overwrite_partitions.q PRE-CREATION 
  trunk/ql/src/test/results/clientpositive/insert1_overwrite_partitions.q.out PRE-CREATION


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


Testing
-------

all tests passed and added new testcases


Thanks,

chinna


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