Skip to content

Commit

Permalink
SNOW-1180341 Temporarily Disable Objec Type Test for the Incoming Beh…
Browse files Browse the repository at this point in the history
…avior Change (#89)

* temporarily disable objec test for incoming behavior change

* fix test

* add commit
  • Loading branch information
sfc-gh-bli authored Mar 15, 2024
1 parent a990259 commit 80f21ba
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/test/scala/com/snowflake/snowpark_test/ResultSchemaSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 80f21ba

Please sign in to comment.