wayneguow commented on code in PR #49564:
URL: https://github.com/apache/spark/pull/49564#discussion_r1929655379


##########
sql/core/src/main/scala/org/apache/spark/sql/jdbc/JdbcSQLQueryBuilder.scala:
##########
@@ -151,6 +156,14 @@ class JdbcSQLQueryBuilder(dialect: JdbcDialect, options: 
JDBCOptions) {
     this
   }
 
+  /**
+   * Saves the hint value used to construct HINT clause.
+   */
+  def withHint(hint: String): JdbcSQLQueryBuilder = {
+    hintClause = dialect.getHint(hint)
+    this
+  }
+

Review Comment:
   And those JdbcDialects that support hint overrides the `getHint` method so 
that the `getHint` method throws an exception by default?



-- 
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]

Reply via email to