aliyun / aliyun-odps-python-sdk

ODPS Python SDK and data analysis framework
http://pyodps.readthedocs.io
Apache License 2.0
434 stars 97 forks source link

options.allow_antique_date error #103

Closed universewill closed 1 year ago

universewill commented 5 years ago

How to solve this?

''' Exception ignored in: 'odps.tunnel.io.reader_c.BaseTunnelRecordReader._set_datetime' Traceback (most recent call last): File "odps/tunnel/io/reader_c.pyx", line 222, in odps.tunnel.io.reader_c.BaseTunnelRecordReader._read_datetime File "/Users/gaoxianglu/miniconda3/lib/python3.7/site-packages/odps/utils.py", line 352, in to_datetime raise OverflowError(_antique_errmsg) OverflowError: Date older than 1928/01/01 and may contain errors. Ignore this error by configuring options.allow_antique_date to True. Traceback (most recent call last): File "odps/tunnel/io/reader_c.pyx", line 222, in odps.tunnel.io.reader_c.BaseTunnelRecordReader._r '''

wjsi commented 1 year ago

Just set options.allow_antique_date to True and ignore possible errors when trying to parse antique date.