Skip to content

Commit

Permalink
Fix casting
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dheyman committed Apr 2, 2024
1 parent 8ac8dbb commit 2604eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/snowflake/client/core/Converters.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public Converter timeFromStringConverter(SFBaseSession session) {
SnowflakeDateTimeFormat formatter =
SnowflakeDateTimeFormat.fromSqlFormat(
(String) session.getCommonParameters().get("TIME_OUTPUT_FORMAT"));
SFTimestamp timestamp = formatter.parse(value);
SFTimestamp timestamp = formatter.parse((String) value);
return Time.valueOf(
Instant.ofEpochMilli(timestamp.getTime()).atZone(ZoneOffset.UTC).toLocalTime());
};
Expand Down

0 comments on commit 2604eb3

Please sign in to comment.