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

ASF GitHub Bot commented on TRAFODION-2074:
-------------------------------------------

Github user selvaganesang commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/550#discussion_r67742390
  
    --- Diff: core/sql/executor/ExHbaseAccess.cpp ---
    @@ -1153,6 +1153,32 @@ Lng32 
ExHbaseAccessTcb::createSQRowFromHbaseFormat(Int64 *latestRowTimestamp)
                  ex_assert(FALSE, "Attr not found -2");
          
          char * defVal = attr->getDefaultValue();
    +          if (! defVal)
    +            {
    +              char * colVal = (char*)
    +                hbaseAccessTdb().listOfFetchedColNames()->get(idx);
    +
    +              Text colFam, colName;
    +              extractColFamilyAndName(colVal, colFam, colName);
    +
    +              Int64 v = 0;
    +              if (colName.length() == sizeof(char))
    +                v = *(char*)colName.data();
    +              else if (colName.length() == sizeof(unsigned short))
    +                v = *(UInt16*)colName.data();
    +              else if (colName.length() == sizeof(Lng32))
    +                v = *(ULng32*)colName.data();
    +
    +              char buf[10];
    --- End diff --
    
    Done. Changed it buf[20] 


> Create index should avoid populating the index within a transaction
> -------------------------------------------------------------------
>
>                 Key: TRAFODION-2074
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2074
>             Project: Apache Trafodion
>          Issue Type: Improvement
>          Components: sql-exe
>    Affects Versions: 2.0-incubating
>            Reporter: Selvaganesan Govindarajan
>            Assignee: Selvaganesan Govindarajan
>             Fix For: 2.1-incubating
>
>
> Populating the index is done via load command. Load command doesn't need 
> transaction. Transactions in Trafodion have 2hr expiry period. If the load 
> takes more than 2 hours to populate the index the create index will always 
> fail. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to