accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher <ctubb...@apache.org>
Subject [NOTICE] Known Issue with DateLexicoder (ACCUMULO-3385)
Date Fri, 05 Dec 2014 22:34:30 GMT
All-

If you've been using the new DateLexicoder in 1.6, please be aware of this
issue: https://issues.apache.org/jira/browse/ACCUMULO-3385

In essence, the DateLexicoder serializes dates incorrectly, which causes
dates before 1970 to sort after all other dates. If you've been using the
DateLexicoder, please be aware of the issue.

You should avoid using this Lexicoder until 1.6.2 and instead use the
LongLexicoder.encode(Date.getTime()) and new
Date(LongLexicoder.decode(bytes)) if you want to get the correct sort
behavior.

If, instead, you'd prefer to keep the same (buggy) behavior, you'll want to
do the same, but with the ULongLexicoder instead. (You may wish for this
option if you've written lots of data which would be cumbersome to re-write
or you have some dependency on the buggy behavior.)

--
Christopher L Tubbs II
http://gravatar.com/ctubbsii

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message