[ 
https://issues.apache.org/jira/browse/TRAFODION-3320?focusedWorklogId=284674&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-284674
 ]

ASF GitHub Bot logged work on TRAFODION-3320:
---------------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Jul/19 03:56
            Start Date: 30/Jul/19 03:56
    Worklog Time Spent: 10m 
      Work Description: SuJinpei commented on pull request #1850: 
[TRAFODION-3320] support multiple characters field and record separator when 
for data loading and extracting
URL: https://github.com/apache/trafodion/pull/1850
 
 
   **changes:**
   
   1. add two options: 'mcfs' and 'mcrs' to specify the multi-character field 
separator and record separator.
   2. add two functions: 'replace_escapes' and 'hextobin' to handle escape 
sequences in the separator.
   3. currentFiledPos -> currentFieldPos 
   
   **separator check algorithm:**
     check last few characters in temp field buffer to see if we found a field 
separator and record separator. 
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 284674)
            Time Spent: 10m
    Remaining Estimate: 0h

> support multiple characters field and record separator when for data loading 
> and extracting
> -------------------------------------------------------------------------------------------
>
>                 Key: TRAFODION-3320
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-3320
>             Project: Apache Trafodion
>          Issue Type: New Feature
>          Components: db-utility-odb
>            Reporter: 苏锦佩
>            Priority: Major
>             Fix For: 2.4
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> suppose we have below data:
> {code:bash}
> $ cat td.data
> AAAAAABBBB|@|{color}000000120003|@|201401202|@|201401202strX'A'B'C'
> CDDEFDFD|@|000000120003|@|201401202|@|201401202strX'A'B'C'
> SEDDDFF|@|000000120003|@|201401202|@|201401202strX'A'B'C'
> TR3223DD3|@|000000120003|@|201401202|@|201401202strX'A'B'C'
> TR3E32SS|@|201401202|@|201401202strX'A'B'C'
> {code}
> we want to use "|@" as the field separator and "strX'A'B'C'" as the record 
> separator, we can use below command:
> {code:bash}
> ./odb64luo -l src=td.data:tgt=tablename:mcfs="|@|":mcrs="strX'A'B'C'"
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to