Commit 62b527e
authored
Sanitize special character column names when writing (#590)
* write with sanitized column names
* push down to when parquet writes
* add test for writing special character column name
* parameterize format_version
* use to_requested_schema
* refactor to_requested_schema
* more refactor
* test nested schema
* special character inside nested field
* comment on why arrow is enabled
* use existing variable
* move spark config to conftest
* pyspark arrow turns pandas df from tuple to dict
* Revert refactor to_requested_schema
* reorder args
* refactor
* pushdown schema
* only tranform when necessary1 parent 2ee2d19 commit 62b527e
4 files changed
Lines changed: 35 additions & 13 deletions
File tree
- pyiceberg/io
- tests
- integration
- test_writes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
1016 | 1017 | | |
1017 | 1018 | | |
1018 | 1019 | | |
1019 | | - | |
1020 | 1020 | | |
1021 | 1021 | | |
1022 | 1022 | | |
| |||
1769 | 1769 | | |
1770 | 1770 | | |
1771 | 1771 | | |
1772 | | - | |
1773 | | - | |
1774 | 1772 | | |
1775 | | - | |
1776 | 1773 | | |
1777 | 1774 | | |
1778 | 1775 | | |
1779 | 1776 | | |
1780 | 1777 | | |
1781 | 1778 | | |
1782 | 1779 | | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
1783 | 1790 | | |
1784 | 1791 | | |
1785 | 1792 | | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
| 1793 | + | |
| 1794 | + | |
1789 | 1795 | | |
1790 | 1796 | | |
1791 | | - | |
1792 | | - | |
| 1797 | + | |
| 1798 | + | |
1793 | 1799 | | |
1794 | 1800 | | |
1795 | 1801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2060 | 2060 | | |
2061 | 2061 | | |
2062 | 2062 | | |
| 2063 | + | |
2063 | 2064 | | |
2064 | 2065 | | |
2065 | 2066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
188 | | - | |
189 | | - | |
190 | 187 | | |
191 | 188 | | |
192 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
283 | 290 | | |
284 | 291 | | |
285 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
286 | 304 | | |
287 | 305 | | |
288 | 306 | | |
| |||
0 commit comments