Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/5498#discussion_r28402880
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/jdbc/DriverQuirks.scala ---
@@ -39,33 +39,70 @@ import java.sql.Types
* if `getJDBCType` returns `(null, None)`, the default type handling is
used
* for the given Catalyst type.
*/
-private[sql] abstract class DriverQuirks {
+abstract class DriverQuirks {
+ def canHandle(url : String): Boolean
def getCatalystType(sqlType: Int, typeName: String, size: Int, md:
MetadataBuilder): DataType
def getJDBCType(dt: DataType): (String, Option[Int])
}
-private[sql] object DriverQuirks {
+object DriverQuirks {
+
+ private var quirks = List[DriverQuirks]()
+
+ def registerQuirks(quirk: DriverQuirks) {
--- End diff --
Please add return type explicitly for all public methods.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]