Open luminosoda opened 1 year ago
@baztian please merge, this bug cause data inconsistency
Temporary solution:
def _to_datetime_patched(rs, col):
java_val = rs.getTimestamp(col)
if not java_val:
return
d = datetime.datetime.strptime(str(java_val)[:19], "%Y-%m-%d %H:%M:%S")
d = d.replace(microsecond=java_val.getNanos() // 1000)
return str(d)
conn = jaydebeapi.connect(...)
# Only after the connection
# 93 - TIMESTAMP
jaydebeapi._converters[93] = _to_datetime_patched
I will only merge changes that have an unit test
dt1 = 200000, dt1_fetch = 200000 dt2 = 90000, dt2_fetch = 900000 (extra zero)