jorisvandenbossche commented on code in PR #14729:
URL: https://github.com/apache/arrow/pull/14729#discussion_r1034627665
##########
python/pyarrow/tests/parquet/test_datetime.py:
##########
@@ -297,6 +297,8 @@ def test_coerce_int96_timestamp_unit(unit):
@pytest.mark.pandas
@pytest.mark.parametrize('pq_reader_method', ['ParquetFile', 'read_table'])
[email protected](
+ "ignore:Discarding nonzero nanoseconds in conversion:UserWarning")
Review Comment:
Ah, or maybe from this line:
```
# with the default resolution of ns, we get wrong values for INT96
# that are out of bounds for nanosecond range
tab_error = get_table(pq_reader_method, filename)
assert tab_error["a"].to_pylist() != oob_dts
```
since you get "wrong" values, those have overflown, and the resulting wrong
datetime will probably have nanoseconds, and thus can raise this warning. That
should be OK to ignore then.
--
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]