orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xndai <...@git.apache.org>
Subject [GitHub] orc issue #233: ORC-322: [C++] Fix writing & reading timestamp
Date Sat, 24 Mar 2018 04:28:24 GMT
Github user xndai commented on the issue:

    IMO the ideal approach of achieving the timestamp semantics is to have the caller pass
in session timezone, and the reader return timestamp batch based on that. That would be similar
to what we do with Java reader today except that Java reader assumes current thread timezone
as session timezone, which in some case can be wrong. The other option is we return timestamp
in a fixed timezone (such as GMT as C++ reader does today) and the behavior needs to be documented
as part of the interface. The caller can always convert it to session timezone accordingly.
But currently the Java and C++ reader behaves differently which can be misleading.


View raw message