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