[ 
https://issues.apache.org/jira/browse/PHOENIX-5118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16766683#comment-16766683
 ] 

Kadir OZDEMIR commented on PHOENIX-5118:
----------------------------------------

This will be fixed as part of PHOENIX-5018. The fix for this issue is a simple 
patch as follows:

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/index/IndexMaintainer.java 
b/phoenix-core/src/main/java/org/apache/phoenix/index/IndexMaintainer.java

index d3d14d8fd..cb09dc4a0 100644

--- a/phoenix-core/src/main/java/org/apache/phoenix/index/IndexMaintainer.java

+++ b/phoenix-core/src/main/java/org/apache/phoenix/index/IndexMaintainer.java

@@ -964,8 +964,7 @@ public class IndexMaintainer implements Writable, 
Iterable<ColumnReference> {

             // add the keyvalue for the empty row

             put.add(kvBuilder.buildPut(new ImmutableBytesPtr(indexRowKey),

                 this.getEmptyKeyValueFamily(), 
dataEmptyKeyValueRef.getQualifierWritable(), ts,

-                // set the value to the empty column name

-                dataEmptyKeyValueRef.getQualifierWritable()));

+                    QueryConstants.EMPTY_COLUMN_VALUE_BYTES_PTR));

             put.setDurability(!indexWALDisabled ? Durability.USE_DEFAULT : 
Durability.SKIP_WAL);

> Index Maintainer writes a wrong value to the empty column
> ---------------------------------------------------------
>
>                 Key: PHOENIX-5118
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5118
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 5.0.0
>            Reporter: Kadir OZDEMIR
>            Assignee: Kadir OZDEMIR
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Index Maintainer writes the name of the empty key column qualifier (("_0") 
> instead of the predefined value (i.e., "x") to the the empty key column. This 
> unnecessarily increases the length of each row by tree bytes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to