Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-3320

support multiple characters field and record separator when for data loading and extracting

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.4
    • db-utility-odb
    • None

    Description

      suppose we have below data:

      $ 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'
      

      we want to use "|@" as the field separator and "strX'A'B'C'" as the record separator, we can use below command:

      ./odb64luo -l src=td.data:tgt=tablename:mcfs="|@|":mcrs="strX'A'B'C'"
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sujinpei 苏锦佩
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m