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

[PYTHON] pyarrow.Table.from_arrays doesn't validate names length

    XMLWordPrintableJSON

    Details

      Description

      pa.Table.from_arrays doesn't validate that the length of arrays and names matches. I think this should raise with a ValueError:

      In [1]: import pyarrow as pa
      
      In [2]: pa.Table.from_arrays([pa.array([1, 2]), pa.array([3, 4])], names=['a', 'b', 'c'])
      Out[2]:
      pyarrow.Table
      a: int64
      b: int64
      
      In [3]: pa.__version__
      Out[3]: '0.7.0'
      

      (This is my first time using JIRA, hopefully I didn't mess up too badly)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                TomAugspurger Tom Augspurger
                Reporter:
                TomAugspurger Tom Augspurger
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified