()
| 1640 | |
| 1641 | |
| 1642 | def test_table_column_with_duplicates(): |
| 1643 | # ARROW-8209 |
| 1644 | table = pa.table([pa.array([1, 2, 3]), |
| 1645 | pa.array([4, 5, 6]), |
| 1646 | pa.array([7, 8, 9])], names=['a', 'b', 'a']) |
| 1647 | |
| 1648 | with pytest.raises(KeyError, |
| 1649 | match='Field "a" exists 2 times in schema'): |
| 1650 | table.column('a') |
| 1651 | |
| 1652 | |
| 1653 | @pytest.mark.parametrize( |