panbingkun commented on code in PR #39524:
URL: https://github.com/apache/spark/pull/39524#discussion_r1069121904
##########
sql/core/src/main/scala/org/apache/spark/sql/jdbc/JdbcDialects.scala:
##########
@@ -135,6 +135,14 @@ abstract class JdbcDialect extends Serializable with
Logging {
s""""$colName""""
}
+ /**
+ * Quotes the field attribute. This is used to put quotes around the field
in case
+ * the attribute contains characters that require quotes (e.g. space).
+ */
+ def quoteFieldAttribute(attribute: String): String = {
+ attribute
+ }
+
/**
Review Comment:
Maybe we need this method to let subclasses implement quota field attribute
when it contains spaces.
--
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]