pan3793 commented on code in PR #56341:
URL: https://github.com/apache/spark/pull/56341#discussion_r3361978959
##########
sql/connect/client/jdbc/src/main/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectConnection.scala:
##########
@@ -128,8 +131,26 @@ class SparkConnectConnection(val url: String, val info:
Properties) extends Conn
throw new SQLFeatureNotSupportedException
override def createStatement(
- resultSetType: Int, resultSetConcurrency: Int): Statement =
- throw new SQLFeatureNotSupportedException
+ resultSetType: Int, resultSetConcurrency: Int): Statement = {
+ checkSupportedResultSet(resultSetType, resultSetConcurrency)
+ createStatement()
+ }
+
+ // SCROLL_INSENSITIVE is accepted but the returned statement is forward-only.
+ // Mirrors the Hive JDBC driver policy used by the Spark Thrift Server.
Review Comment:
I don't think it's correct. If you look at the Hive JDBC driver
implementation, you will find it has the corresponding code for
SCROLL_INSENSITIVE, which is different from FORWARD_ONLY
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]