From 916146e5c7b1b1800c7f59b865c5a04870e17da4 Mon Sep 17 00:00:00 2001 From: Bing Li Date: Wed, 18 Sep 2024 14:15:27 -0700 Subject: [PATCH] fix get row --- src/test/scala/com/snowflake/snowpark_test/RowSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/scala/com/snowflake/snowpark_test/RowSuite.scala b/src/test/scala/com/snowflake/snowpark_test/RowSuite.scala index 8de21e92..f828a7b6 100644 --- a/src/test/scala/com/snowflake/snowpark_test/RowSuite.scala +++ b/src/test/scala/com/snowflake/snowpark_test/RowSuite.scala @@ -301,7 +301,7 @@ class RowSuite extends SNTestBase { assert(row.getAs[Short](10) == Short.MinValue) assert(row.getAs[String](11) == "string") assert(row.getAs[Time](12) == Time.valueOf("16:23:04")) - assert(row.getAs[Timestamp](13) == new Timestamp(milliseconds)) + assert(row.getAs[Timestamp](13).getTime == milliseconds) assert(row.getAs[Variant](14) == new Variant(1)) assertThrows[ClassCastException](row.getAs[Boolean](0)) assertThrows[ArrayIndexOutOfBoundsException](row.getAs[Boolean](-1))