Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9417

[C++][IPC] size in message written in native endian

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • C++

    Description

      According to this specification, metadata length and footer size should be written in little endian

      However, the current implementation writes them in native endian.

      On little-endian

      00000000: 41 52 52 4f 57 31 00 00 ff ff ff ff 88 07 00 00 10 00 00 00 00 00 0a 00 0e 00 06 00 05 00 08 00  ARROW1..........................
      ...
      00005700: 62 6f 6f 6c 5f 6e 75 6c 6c 61 62 6c 65 00 00 00 d0 07 00 00 41 52 52 4f 57 31                    bool_nullable.......ARROW1
      

      On big-endian

      00000000: 41 52 52 4f 57 31 00 00 ff ff ff ff 00 00 07 90 10 00 00 00 00 00 0a 00 0e 00 06 00 05 00 08 00  ARROW1..........................
                                                    ~~~~~~~~~~~
      ...
      00005700: 04 00 00 00 0d 00 00 00 62 6f 6f 6c 5f 6e 75 6c 6c 61 62 6c 65 00 00 00 00 00 07 d0 41 52 52 4f  ........bool_nullable.......ARRO
                                                                                        ~~~~~~~~~~~
      00005720: 57 31  
      
      

      Attachments

        Issue Links

          Activity

            People

              kiszk Kazuaki Ishizaki
              kiszk Kazuaki Ishizaki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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