From 2604eb36ac9a55adc3c07e1b7a072ee8ab0c2f02 Mon Sep 17 00:00:00 2001 From: Dawid Heyman Date: Tue, 2 Apr 2024 10:18:25 +0200 Subject: [PATCH] Fix casting --- src/main/java/net/snowflake/client/core/Converters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/snowflake/client/core/Converters.java b/src/main/java/net/snowflake/client/core/Converters.java index bb4240cd9..28d195628 100644 --- a/src/main/java/net/snowflake/client/core/Converters.java +++ b/src/main/java/net/snowflake/client/core/Converters.java @@ -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()); };