Skip to content

Commit

Permalink
Change naming of shim method
Browse files Browse the repository at this point in the history
  • Loading branch information
voonhous committed Jul 8, 2024
1 parent 8b18bd4 commit 6d0d881
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public static Writable getDateWriteable(int value) {
}

public static Object getTimestamp(Object fieldData) {
return HIVE_SHIM.getPrimitiveJavaObject(fieldData);
return HIVE_SHIM.unwrapTimestampAsPrimitive(fieldData);
}

public static int getDays(Object dateWritable) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Writable getTimestampWriteable(long value, boolean timestampMillis) {
}

@Override
public Object getPrimitiveJavaObject(Object o) {
public Object unwrapTimestampAsPrimitive(Object o) {
return o == null ? null : ((TimestampWritable) o).getTimestamp();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public Writable getTimestampWriteable(long value, boolean timestampMillis) {
}

@Override
public Object getPrimitiveJavaObject(Object o) {
public Object unwrapTimestampAsPrimitive(Object o) {
if (o == null) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public interface HiveShim {

Writable getTimestampWriteable(long value, boolean timestampMillis);

Object getPrimitiveJavaObject(Object o);
Object unwrapTimestampAsPrimitive(Object o);

Writable getDateWriteable(int value);

Expand Down

0 comments on commit 6d0d881

Please sign in to comment.