Commit 02754a5
authored
Fix Parquet UNKNOWN annotation IT writes on Dataproc[databricks] (NVIDIA#15428)
fixes NVIDIA#15426.
### Description
- Dataproc nightlies failed in
`test_parquet_unknown_type_annotation_pre_411_physical` because PyArrow
wrote directly to `spark_tmp_path`, which is created via Hadoop
`FileSystem.mkdirs` (GCS on Dataproc) rather than the local filesystem;
write the sample Parquet file locally and `copy_from_local` into the
Hadoop path so cluster reads succeed.
- Move the existing `copy_from_local` helper from
`fastparquet_compatibility_test.py` into `parquet_test_utils.py` and
reuse it from both call sites to avoid duplicating the Hadoop copy path.
### Checklists
Documentation
- [ ] Updated for new or modified user-facing features or behaviors
- [x] No user-facing change
Testing
- [x] Added or modified tests to cover new code paths
- [ ] Covered by existing tests
(Please provide the names of the existing tests in the PR description.)
- [ ] Not required
Performance
- [ ] Tests ran and results are added in the PR description
- [ ] Issue filed with a link in the PR description
- [x] Not required
Signed-off-by: Firestarman <firestarmanllc@gmail.com>1 parent 6f42817 commit 02754a5
3 files changed
Lines changed: 26 additions & 14 deletions
File tree
- integration_tests/src/main/python
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | 251 | | |
262 | 252 | | |
263 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
1996 | 1998 | | |
1997 | 1999 | | |
1998 | 2000 | | |
1999 | | - | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
2000 | 2007 | | |
2001 | 2008 | | |
2002 | 2009 | | |
| |||
2018 | 2025 | | |
2019 | 2026 | | |
2020 | 2027 | | |
2021 | | - | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
2022 | 2035 | | |
2023 | 2036 | | |
2024 | 2037 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
| |||
0 commit comments