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

[C++] List types with different field names are not equal

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0.0
    • 11.0.0
    • C++

    Description

      When comparing map types, the names of the fields are ignored. This was introduced in ARROW-7173.

      However for list types, they are not ignored. For example,

      In [6]: l1 = pa.list_(pa.field("val", pa.int64()))
      
      In [7]: l2 = pa.list_(pa.int64())
      
      In [8]: l1
      Out[8]: ListType(list<val: int64>)
      
      In [9]: l2
      Out[9]: ListType(list<item: int64>)
      
      In [10]: l1 == l2
      Out[10]: False
      

      Should we make list type comparison ignore field names too?

      Attachments

        Issue Links

          Activity

            People

              wjones127 Will Jones
              wjones127 Will Jones
              Votes:
              1 Vote for this issue
              Watchers:
              5 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 - 2h 40m
                  2h 40m