(tempdir, version)
| 781 | |
| 782 | |
| 783 | def test_read_column_duplicated_selection(tempdir, version): |
| 784 | # duplicated columns in the column selection |
| 785 | table = pa.table([[1, 2, 3], [4, 5, 6], [7, 8, 9]], names=['a', 'b', 'c']) |
| 786 | path = str(tempdir / "data.feather") |
| 787 | write_feather(table, path, version=version) |
| 788 | |
| 789 | expected = pa.table([[1, 2, 3], [4, 5, 6], [1, 2, 3]], |
| 790 | names=['a', 'b', 'a']) |
| 791 | for col_selection in [['a', 'b', 'a'], [0, 1, 0]]: |
| 792 | result = read_table(path, columns=col_selection) |
| 793 | assert result.equals(expected) |
| 794 | |
| 795 | |
| 796 | def test_read_column_duplicated_in_file(tempdir): |
nothing calls this directly
no test coverage detected