Skip to content
Permalink
Browse files
ORC: Suppress JavaLocalDateTimeGetNano warning (#4861)
  • Loading branch information
amogh-jahagirdar committed May 25, 2022
1 parent 04871b7 commit c62a5c2768a49a5302952aac07ff7370075b6809
Showing 1 changed file with 2 additions and 0 deletions.
@@ -318,6 +318,7 @@ private static class TimestampTzWriter implements OrcValueWriter<OffsetDateTime>
private static final OrcValueWriter<OffsetDateTime> INSTANCE = new TimestampTzWriter();

@Override
@SuppressWarnings("JavaLocalDateTimeGetNano")
public void nonNullWrite(int rowId, OffsetDateTime data, ColumnVector output) {
TimestampColumnVector cv = (TimestampColumnVector) output;
// millis
@@ -331,6 +332,7 @@ private static class TimestampWriter implements OrcValueWriter<LocalDateTime> {
private static final OrcValueWriter<LocalDateTime> INSTANCE = new TimestampWriter();

@Override
@SuppressWarnings("JavaLocalDateTimeGetNano")
public void nonNullWrite(int rowId, LocalDateTime data, ColumnVector output) {
TimestampColumnVector cv = (TimestampColumnVector) output;
cv.setIsUTC(true);

0 comments on commit c62a5c2

Please sign in to comment.