Skip to content

Commit

Permalink
Use correct type in column declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Sep 22, 2020
1 parent f6bf01b commit 093709c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public static ColumnMapping timestampColumnMappingUsingSqlTimestamp(TimestampTyp
// TODO support higher precision
checkArgument(timestampType.getPrecision() <= MAX_SHORT_PRECISION, "Precision is out of range: %s", timestampType.getPrecision());
return ColumnMapping.longMapping(
TIMESTAMP_MILLIS,
timestampType,
(resultSet, columnIndex) -> {
Timestamp timestamp = resultSet.getTimestamp(columnIndex);
return toPrestoTimestamp(timestampType, timestamp.toLocalDateTime());
Expand Down

0 comments on commit 093709c

Please sign in to comment.