Skip to content

HIVE-4525 Support all timestamps (earlier than 1970 and later than 2038) #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: shark-0.9
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

Name=Hive
name=hive
version=0.9.0-amplab-4
version=0.9.0-amplab-5
year=2011

javac.debug=on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public IntWritable evaluate(TimestampWritable i) {
if (i == null) {
return null;
} else {
intWritable.set(i.getSeconds());
intWritable.set((int) i.getSeconds());
return intWritable;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static Object deserialize(InputByteBuffer buffer, TypeInfo type,
case TIMESTAMP:
TimestampWritable t = (reuse == null ? new TimestampWritable() :
(TimestampWritable) reuse);
byte[] bytes = new byte[8];
byte[] bytes = new byte[TimestampWritable.BINARY_SORTABLE_LENGTH];

for (int i = 0; i < bytes.length; i++) {
bytes[i] = buffer.read(invert);
Expand Down
Loading