sarutak commented on a change in pull request #31491:
URL: https://github.com/apache/spark/pull/31491#discussion_r573841048
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala
##########
@@ -1781,4 +1783,28 @@ class JDBCSuite extends QueryTest
assert(options.asProperties.get("url") == url)
assert(options.asProperties.get("dbtable") == "table3")
}
+
+ test("SPARK-34379: Map JDBC RowID to StringType rather than LongType") {
+ val mockRsmd = mock(classOf[java.sql.ResultSetMetaData])
Review comment:
It cannot.
H2 has `_rowid_` as a hidden column but it's not compatible with JDBC ROWID.
`_rowid_` is represented as `long` and H2 doesn't support `getRowId`.
https://github.com/h2database/h2database/blob/6290b79a2418189c5faa0e0506bf6503fc7630e6/h2/src/main/org/h2/jdbc/JdbcResultSet.java#L3292
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]