AlenkaF commented on pull request #12522:
URL: https://github.com/apache/arrow/pull/12522#issuecomment-1080948878
This PR is now ready. I have run the tests with and without `pytz`.
<details>
<summary>With pytz installed</summary>
<pre>
```python
(pyarrow-dev-9) (base) alenkafrim@Alenkas-MacBook-Pro arrow % pip install
pytz
Collecting pytz
Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Installing collected packages: pytz
Successfully installed pytz-2022.1
(pyarrow-dev-9) (base) alenkafrim@Alenkas-MacBook-Pro arrow % python -m
pytest python/pyarrow/tests --enable-hypothesis
================================================================= test
session starts =================================================================
platform darwin -- Python 3.9.10, pytest-7.1.1, pluggy-1.0.0
rootdir: /Users/alenkafrim/repos/arrow/python, configfile: setup.cfg
plugins: hypothesis-6.39.4, cython-0.2.0.dev0, lazy-fixture-0.6.3
collected 4142 items / 3 skipped
python/pyarrow/tests/test_adhoc_memory_leak.py s
[ 0%]
python/pyarrow/tests/test_array.py
........................s...................................................................................
[ 2%]
..............................................................................................ss.............
[ 5%]
python/pyarrow/tests/test_builder.py ....
[ 5%]
python/pyarrow/tests/test_cffi.py ...........
[ 5%]
python/pyarrow/tests/test_compute.py
..........................................................................................................
[ 8%]
..............................................................................................................
[ 10%]
python/pyarrow/tests/test_convert_builtin.py
..................................................................................................
[ 13%]
.................................................................................................................x.............................
[ 16%]
.........................................................x.......................ssssss........................................................
[ 20%]
................................................sssssssss
[ 21%]
python/pyarrow/tests/test_csv.py
..............................................................................................................
[ 24%]
......
[ 24%]
python/pyarrow/tests/test_cython.py ..
[ 24%]
python/pyarrow/tests/test_dataset.py
..........................................................................................................
[ 26%]
..................................................ssss...................ssss.................................................................s
[ 30%]
..
[ 30%]
python/pyarrow/tests/test_extension_type.py
........................................
[ 31%]
python/pyarrow/tests/test_feather.py
.............................ss...............................ss...x........s.....s.
[ 33%]
python/pyarrow/tests/test_filesystem.py ....
[ 33%]
python/pyarrow/tests/test_flight.py
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
[ 35%]
python/pyarrow/tests/test_fs.py
s.......ssx.x..s...ssx.x..s....ss.....s...ss.....s...ss.....s...ss.....s...ss.....s...ss.....s...ss.....s....ss
[ 37%]
.....s...ss.....s...ss.....s...ss.....s............ssssssss....................ssss...ss.....s...ss.....s............ssssssss..................
[ 41%]
..ssss............ssssssss....................ssss...ss.....s....sss...............s...........ssss.
[ 43%]
python/pyarrow/tests/test_gandiva.py sssssssssss
[ 43%]
python/pyarrow/tests/test_gdb.py ssssssssssssssssssssssss
[ 44%]
python/pyarrow/tests/test_hdfs.py ssssssssssssssssssssssss
[ 45%]
python/pyarrow/tests/test_io.py
........s..........................x.....x...............s...s................................x................
[ 47%]
.................
[ 48%]
python/pyarrow/tests/test_ipc.py
....................................................
[ 49%]
python/pyarrow/tests/test_json.py ..........................
[ 49%]
python/pyarrow/tests/test_memory.py .................
[ 50%]
python/pyarrow/tests/test_misc.py
.s...............................................................................................
[ 52%]
python/pyarrow/tests/test_orc.py sssssssssss
[ 52%]
python/pyarrow/tests/test_pandas.py
...........................................................................................................
[ 55%]
sss.....................................................s.........s............................................................................
[ 59%]
......................................................
[ 60%]
python/pyarrow/tests/test_plasma.py sssssssssssssssssssssssssssssssss
[ 61%]
python/pyarrow/tests/test_plasma_tf_op.py s
[ 61%]
python/pyarrow/tests/test_scalars.py
..............................................s....s....................
[ 62%]
python/pyarrow/tests/test_schema.py ................................
[ 63%]
python/pyarrow/tests/test_serialization.py
........s..ss.......................................................................................
[ 66%]
.............................................................................................ss................................................
[ 69%]
................................................................................................................................s..............
[ 72%]
...............................................................................................................................................
[ 76%]
...................s...........................................................................................................................
[ 79%]
........................................................s..............
[ 81%]
python/pyarrow/tests/test_serialization_deprecated.py ..
[ 81%]
python/pyarrow/tests/test_sparse_tensor.py
....................................................................................................
[ 84%]
................................sssssssssssssssssssssssssssssssss
[ 85%]
python/pyarrow/tests/test_strategies.py ...ss.ss
[ 85%]
python/pyarrow/tests/test_table.py
.......................s................................................................................
[ 88%]
python/pyarrow/tests/test_tensor.py .....................
[ 88%]
python/pyarrow/tests/test_types.py
............................................................................
[ 90%]
python/pyarrow/tests/test_util.py s
[ 90%]
python/pyarrow/tests/parquet/test_basic.py
...............s........................................s.....................................
[ 92%]
python/pyarrow/tests/parquet/test_compliant_nested_type.py ........
[ 93%]
python/pyarrow/tests/parquet/test_data_types.py
..............X.................sssssss.ss
[ 94%]
python/pyarrow/tests/parquet/test_dataset.py
....x..........xx.......x...x.ssssssss..........................x.x...........ssssss.s..s.........
[ 96%]
[ 96%]
python/pyarrow/tests/parquet/test_datetime.py ...................
[ 97%]
python/pyarrow/tests/parquet/test_encryption.py ssssssssssssssss
[ 97%]
python/pyarrow/tests/parquet/test_metadata.py .........................s
[ 98%]
python/pyarrow/tests/parquet/test_pandas.py
.......s.........................................
[ 99%]
python/pyarrow/tests/parquet/test_parquet_file.py ..............
[ 99%]
python/pyarrow/tests/parquet/test_parquet_writer.py .............sss...
[100%]
================================================================== warnings
summary ===================================================================
pyarrow/tests/test_pandas.py::TestConvertMetadata::test_column_index_names_with_tz
pyarrow/tests/test_pandas.py::TestConvertMetadata::test_column_index_names_with_tz
pyarrow/tests/test_pandas.py::TestConvertMetadata::test_column_index_names_with_tz
/Users/alenkafrim/repos/pyarrow-dev-9/lib/python3.9/site-packages/pandas/core/indexes/base.py:1059:
DeprecationWarning: parsing timezone aware datetimes is deprecated; this will
raise an error in the future
new_values = values.astype(dtype, copy=copy)
pyarrow/tests/test_pandas.py::TestConvertMetadata::test_rangeindex_doesnt_warn
pyarrow/tests/test_pandas.py::TestConvertMetadata::test_multiindex_doesnt_warn
pyarrow/tests/parquet/test_basic.py::test_read_table_doesnt_warn[True]
pyarrow/tests/parquet/test_basic.py::test_read_table_doesnt_warn[False]
/Users/alenkafrim/repos/pyarrow-dev-9/lib/python3.9/site-packages/_pytest/python.py:192:
PytestRemovedIn8Warning: Passing None has been deprecated.
See
https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests
for alternatives in common use cases.
result = testfunction(**testargs)
pyarrow/tests/test_pandas.py::TestConvertListTypes::test_infer_lists
pyarrow/tests/test_pandas.py::TestConvertListTypes::test_to_list_of_structs_pandas
pyarrow/tests/test_pandas.py::TestConvertListTypes::test_nested_large_list
/Users/alenkafrim/repos/pyarrow-dev-9/lib/python3.9/site-packages/pandas/core/dtypes/missing.py:521:
DeprecationWarning: elementwise comparison failed; this will raise an error in
the future.
if np.any(np.asarray(left_value != right_value)):
pyarrow/tests/test_pandas.py::TestConvertListTypes::test_nested_large_list
/Users/alenkafrim/repos/pyarrow-dev-9/lib/python3.9/site-packages/pandas/core/dtypes/missing.py:521:
VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
(which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths
or shapes) is deprecated. If you meant to do this, you must specify
'dtype=object' when creating the ndarray.
if np.any(np.asarray(left_value != right_value)):
pyarrow/tests/test_pandas.py::test_timestamp_as_object_parquet
pyarrow/tests/parquet/test_pandas.py::test_spark_flavor_preserves_pandas_metadata
/Users/alenkafrim/repos/arrow/python/pyarrow/parquet.py:2101:
FutureWarning: Parquet format '2.0' pseudo version is deprecated, use '2.4' or
'2.6' for fine-grained feature selection
with ParquetWriter(
pyarrow/tests/parquet/test_metadata.py::test_write_metadata
/Users/alenkafrim/repos/arrow/python/pyarrow/parquet.py:2345:
FutureWarning: Parquet format '2.0' pseudo version is deprecated, use '2.4' or
'2.6' for fine-grained feature selection
writer = ParquetWriter(where, schema, **kwargs)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================= 3723 passed, 404 skipped, 17
xfailed, 1 xpassed, 14 warnings in 39.40s
========================================
```
</pre>
</details>
<details>
<summary>Without pytz</summary>
<pre>
```python
(pyarrow-dev-9) (base) alenkafrim@Alenkas-MacBook-Pro arrow % pip uninstall
pytz
Found existing installation: pytz 2022.1
Uninstalling pytz-2022.1:
Would remove:
/Users/alenkafrim/repos/pyarrow-dev-9/lib/python3.9/site-packages/pytz-2022.1.dist-info/*
/Users/alenkafrim/repos/pyarrow-dev-9/lib/python3.9/site-packages/pytz/*
Proceed (Y/n)? y
Successfully uninstalled pytz-2022.1
(pyarrow-dev-9) (base) alenkafrim@Alenkas-MacBook-Pro arrow % python -m
pytest python/pyarrow/tests --enable-hypothesis
================================================================= test
session starts =================================================================
platform darwin -- Python 3.9.10, pytest-7.1.1, pluggy-1.0.0
rootdir: /Users/alenkafrim/repos/arrow/python, configfile: setup.cfg
plugins: hypothesis-6.39.4, cython-0.2.0.dev0, lazy-fixture-0.6.3
collected 4142 items / 3 skipped
python/pyarrow/tests/test_adhoc_memory_leak.py s
[ 0%]
python/pyarrow/tests/test_array.py
.......................ss....s..............................................................................
[ 2%]
.............s.........................s...................s.s................................ss...s........s
[ 5%]
python/pyarrow/tests/test_builder.py ....
[ 5%]
python/pyarrow/tests/test_cffi.py ...........
[ 5%]
python/pyarrow/tests/test_compute.py
........................................................................s.................................
[ 8%]
........................................................................ssssssssss............................
[ 10%]
python/pyarrow/tests/test_convert_builtin.py
..................................................................................................
[ 13%]
.................................................................................................................x.............................
[ 16%]
.........................................................x.......................ssssss...............ssssssssssssssssssssss...Xs..............
[ 20%]
...............................................ssssssssss
[ 21%]
python/pyarrow/tests/test_csv.py
..............................................................................................................
[ 24%]
......
[ 24%]
python/pyarrow/tests/test_cython.py ..
[ 24%]
python/pyarrow/tests/test_dataset.py
...........................s....sssssss.ssss.ssssssssss......s....s...................s..........s........
[ 26%]
.................................................sssss.ss......ssss......ssss.ssssssssss......sss.ssssss..ssss..sss.s.....s....ss..........s..s
[ 30%]
..
[ 30%]
python/pyarrow/tests/test_extension_type.py
.................s.s....................
[ 31%]
python/pyarrow/tests/test_feather.py
s.sssssssss..ssssssssssssss.sss.s..sssssssss..ssssssssssssss.sss.s.sss.sss..s.....s.
[ 33%]
python/pyarrow/tests/test_filesystem.py ....
[ 33%]
python/pyarrow/tests/test_flight.py
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
[ 35%]
python/pyarrow/tests/test_fs.py
s.......ssx.x..s...ssx.x..s....ss.....s...ss.....s...ss.....s...ss.....s...ss.....s...ss.....s...ss.....s....ss
[ 37%]
.....s...ss.....s...ss.....s...ss.....s............ssssssss....................ssss...ss.....s...ss.....s............ssssssss..................
[ 41%]
..ssss............ssssssss....................ssss...ss.....s....sss...............s...........ssss.
[ 43%]
python/pyarrow/tests/test_gandiva.py sssssssssss
[ 43%]
python/pyarrow/tests/test_gdb.py ssssssssssssssssssssssss
[ 44%]
python/pyarrow/tests/test_hdfs.py ssssssssssssssssssssssss
[ 45%]
python/pyarrow/tests/test_io.py
........s..........................x.....x...............s...s................................x................
[ 47%]
.................
[ 48%]
python/pyarrow/tests/test_ipc.py
......s..s.ss..............s........ss.sssssssss....
[ 49%]
python/pyarrow/tests/test_json.py ..........................
[ 49%]
python/pyarrow/tests/test_memory.py .................
[ 50%]
python/pyarrow/tests/test_misc.py
.s...............................................................................................
[ 52%]
python/pyarrow/tests/test_orc.py sssssssssss
[ 52%]
python/pyarrow/tests/test_pandas.py
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
[ 55%]
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
[ 59%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssss
[ 60%]
python/pyarrow/tests/test_plasma.py sssssssssssssssssssssssssssssssss
[ 61%]
python/pyarrow/tests/test_plasma_tf_op.py s
[ 61%]
python/pyarrow/tests/test_scalars.py
.............................................ssss.s..............s......
[ 62%]
python/pyarrow/tests/test_schema.py ...s........................s...
[ 63%]
python/pyarrow/tests/test_serialization.py
........s..ss.......................................................................................
[ 66%]
.............................................................................................ss................................................
[ 69%]
................................................................................................................................s..............
[ 72%]
...............................................................................................................................................
[ 76%]
...................s...........................................................................................................................
[ 79%]
........................................................s..............
[ 81%]
python/pyarrow/tests/test_serialization_deprecated.py ..
[ 81%]
python/pyarrow/tests/test_sparse_tensor.py
....................................................................................................
[ 84%]
................................sssssssssssssssssssssssssssssssss
[ 85%]
python/pyarrow/tests/test_strategies.py ...sssss
[ 85%]
python/pyarrow/tests/test_table.py
..................ssssss..................s....s.....................s...................ss.s...........
[ 88%]
python/pyarrow/tests/test_tensor.py .....................
[ 88%]
python/pyarrow/tests/test_types.py
................s...s..s....................................................
[ 90%]
python/pyarrow/tests/test_util.py s
[ 90%]
python/pyarrow/tests/parquet/test_basic.py
...ssssssss....sssss..ss...................sssss....ss..s.....................................
[ 92%]
python/pyarrow/tests/parquet/test_compliant_nested_type.py ssssssss
[ 93%]
python/pyarrow/tests/parquet/test_data_types.py
ssssssssss..sss...........ss.ss.sssssss.ss
[ 94%]
python/pyarrow/tests/parquet/test_dataset.py
ss..x.ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssx.sssssssssssssssssssssssss.....
[ 96%]
[ 96%]
python/pyarrow/tests/parquet/test_datetime.py sssssssssssss..sss.
[ 97%]
python/pyarrow/tests/parquet/test_encryption.py ssssssssssssssss
[ 97%]
python/pyarrow/tests/parquet/test_metadata.py s.ssssssssssssss...s..ss.s
[ 98%]
python/pyarrow/tests/parquet/test_pandas.py
sssssssssssssssssssssssssssssssssssssssssssssssss
[ 99%]
python/pyarrow/tests/parquet/test_parquet_file.py ssssss..ssssss
[ 99%]
python/pyarrow/tests/parquet/test_parquet_writer.py ss.ssssssssssssssss
[100%]
================================================================== warnings
summary ===================================================================
pyarrow/tests/parquet/test_basic.py::test_read_table_doesnt_warn[True]
pyarrow/tests/parquet/test_basic.py::test_read_table_doesnt_warn[False]
/Users/alenkafrim/repos/pyarrow-dev-9/lib/python3.9/site-packages/_pytest/python.py:192:
PytestRemovedIn8Warning: Passing None has been deprecated.
See
https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests
for alternatives in common use cases.
result = testfunction(**testargs)
pyarrow/tests/parquet/test_metadata.py::test_write_metadata
/Users/alenkafrim/repos/arrow/python/pyarrow/parquet.py:2345:
FutureWarning: Parquet format '2.0' pseudo version is deprecated, use '2.4' or
'2.6' for fine-grained feature selection
writer = ParquetWriter(where, schema, **kwargs)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================= 3001 passed, 1132 skipped, 11
xfailed, 1 xpassed, 3 warnings in 29.25s
========================================
```
</pre>
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]