jaanai created PHOENIX-5226:
-------------------------------

             Summary:  The format of VIEW_MODIFIED_PROPERTY_BYTES is incorrect 
as a tag of the cell
                 Key: PHOENIX-5226
                 URL: https://issues.apache.org/jira/browse/PHOENIX-5226
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 4.14.1, 5.0.0
         Environment: 


{panel:title=My title}
Some text with a title
{panel}

            Reporter: jaanai
            Assignee: jaanai
         Attachments: Screen Shot 2019-04-01 at 16.09.23.png, Screen Shot 
2019-04-01 at 16.13.10.png

We use a tag of cell to indicat that some properties should not be derived from 
the base table for view table.  VIEW_MODIFIED_PROPERTY_BYTES is used a tag 
bytes, but the format is incorrect, the below is a reference from KeyValue 
interface:

{quote}
KeyValue can optionally contain Tags. When it contains tags, it is added in the 
byte array after
 * the value part. The format for this part is: 
<code>&lt;tagslength&gt;&lt;tagsbytes&gt;</code>.
 * <code>tagslength</code> maximum is <code>Short.MAX_SIZE</code>. The 
<code>tagsbytes</code>
 * contain one or more tags where as each tag is of the form
 * <code>&lt;taglength&gt;&lt;tagtype&gt;&lt;tagbytes&gt;</code>. 
<code>tagtype</code> is one byte
 * and <code>taglength</code> maximum is <code>Short.MAX_SIZE</code> and it 
includes 1 byte type
 * length and actual tag bytes length.
{quote}

The CATALOG table will be badly affected. Some errors will be caused when reads 
CATALOG table.



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

Reply via email to