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




bin/ext/fixacidkeyindex.sh
Lines 32 (patched)
<https://reviews.apache.org/r/65988/#comment279150>

    nit: whitespace



ql/src/java/org/apache/hadoop/hive/ql/io/orc/FixAcidKeyIndex.java
Lines 227 (patched)
<https://reviews.apache.org/r/65988/#comment279153>

    what is the contract for these 3 fields?
    is rowId always monotonically increasing?
    can transactionId change within a stripe? if so is there any ordering?
    is bucket number constant within a file?
    
    based on the ordering the ordering guarantees, we may be able to max stats 
value of individual columns as opposed to seek. if there are no ordering 
guarantees don't we have to look the entire last stripe to figure the max value 
of triple<transactionId, bucket, rowId>?



ql/src/java/org/apache/hadoop/hive/ql/io/orc/FixAcidKeyIndex.java
Lines 254 (patched)
<https://reviews.apache.org/r/65988/#comment279154>

    "+= +" is that an additional + at the end? intended?



ql/src/java/org/apache/hadoop/hive/ql/io/orc/FixAcidKeyIndex.java
Lines 257 (patched)
<https://reviews.apache.org/r/65988/#comment279155>

    put this inside try..finally (or try..with..resource) to close the resource?



ql/src/java/org/apache/hadoop/hive/ql/io/orc/FixAcidKeyIndex.java
Lines 259 (patched)
<https://reviews.apache.org/r/65988/#comment279156>

    comment doesn't seem to match code. looks like the following block is 
finalizing the rename (commit)?


- Prasanth_J


On March 8, 2018, 5:38 p.m., Jason Dere wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/65988/
> -----------------------------------------------------------
> 
> (Updated March 8, 2018, 5:38 p.m.)
> 
> 
> Review request for hive, Eugene Koifman and Prasanth_J.
> 
> 
> Bugs: HIVE-18907
>     https://issues.apache.org/jira/browse/HIVE-18907
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> Create utility similar to orcfiledump to check/fix this particular acid key 
> index issue.
> 
> 
> Diffs
> -----
> 
>   bin/ext/fixacidkeyindex.sh PRE-CREATION 
>   ql/src/java/org/apache/hadoop/hive/ql/io/orc/FixAcidKeyIndex.java 
> PRE-CREATION 
>   ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestFixAcidKeyIndex.java 
> PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/65988/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Jason Dere
> 
>

Reply via email to