Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-1287

C++ read timestamp value is different from java read when using csv-import tool convert CSV to ORC files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.3
    • None
    • C++
    • None
    • centos7

    Description

      I have a csv file. Convert to orc files with the c++ csv-import tool.   

      ORC Version is v1.7.3  

       

      Command

      csv-import "struct<a:timestamp>" ./test.csv ./test.orc

      java -jar orc-tools-1.7.3-uber.jar data test.orc

      orc-contents ./test.orc

       

        

       

      0001-01-01 00:00:00.000000  java and c++ show timestamp are different

        

      Tried the version orc main branch is the same results.

        

      this issue looks similar to this issue

      https://issues.apache.org/jira/browse/ORC-1055

      Attachments

        1. image.png
          361 kB
          Dongjoon Hyun
        2. image-2022-10-12-21-09-31-864.png
          361 kB
          liuxiaoyu
        3. image-2022-10-12-20-47-56-965.png
          380 kB
          liuxiaoyu
        4. test.orc
          0.3 kB
          liuxiaoyu
        5. test.csv
          0.2 kB
          liuxiaoyu

        Activity

          People

            Unassigned Unassigned
            Xiaoyu Liu liuxiaoyu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: