()
| 1701 | |
| 1702 | |
| 1703 | def test_table_column_with_duplicates(): |
| 1704 | # ARROW-8209 |
| 1705 | table = pa.table([pa.array([1, 2, 3]), |
| 1706 | pa.array([4, 5, 6]), |
| 1707 | pa.array([7, 8, 9])], names=['a', 'b', 'a']) |
| 1708 | |
| 1709 | with pytest.raises(KeyError, |
| 1710 | match='Field "a" exists 2 times in schema'): |
| 1711 | table.column('a') |
| 1712 | |
| 1713 | |
| 1714 | @pytest.mark.parametrize( |