From 80f21bae1d69ccb97de7b7b565b4a2068f6325dd Mon Sep 17 00:00:00 2001 From: Bing Li <63471091+sfc-gh-bli@users.noreply.github.com> Date: Fri, 15 Mar 2024 16:32:37 -0700 Subject: [PATCH] SNOW-1180341 Temporarily Disable Objec Type Test for the Incoming Behavior Change (#89) * temporarily disable objec test for incoming behavior change * fix test * add commit --- .../snowpark_test/ResultSchemaSuite.scala | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/test/scala/com/snowflake/snowpark_test/ResultSchemaSuite.scala b/src/test/scala/com/snowflake/snowpark_test/ResultSchemaSuite.scala index a06500eb..0a20a89a 100644 --- a/src/test/scala/com/snowflake/snowpark_test/ResultSchemaSuite.scala +++ b/src/test/scala/com/snowflake/snowpark_test/ResultSchemaSuite.scala @@ -131,17 +131,20 @@ class ResultSchemaSuite extends TestData { val resultMeta = statement.getResultSet.getMetaData val columnCount = resultMeta.getColumnCount val tsSchema = session.table(fullTypesTable2).schema - (0 until columnCount).foreach(index => { - assert(resultMeta.getColumnType(index + 1) == typeMap(index).jdbcType) - assert( - getDataType( - resultMeta.getColumnType(index + 1), - resultMeta.getColumnTypeName(index + 1), - resultMeta.getPrecision(index + 1), - resultMeta.getScale(index + 1), - resultMeta.isSigned(index + 1)) == typeMap(index).tsType) - assert(tsSchema(index).dataType == typeMap(index).tsType) - }) + (0 until columnCount) + // todo: remove this line after JDBC is released + .filter(_ != 31) // temporarily skip object for incoming behavior change + .foreach(index => { + assert(resultMeta.getColumnType(index + 1) == typeMap(index).jdbcType) + assert( + getDataType( + resultMeta.getColumnType(index + 1), + resultMeta.getColumnTypeName(index + 1), + resultMeta.getPrecision(index + 1), + resultMeta.getScale(index + 1), + resultMeta.isSigned(index + 1)) == typeMap(index).tsType) + assert(tsSchema(index).dataType == typeMap(index).tsType) + }) statement.close() }