Github user rick-ibm commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8982#discussion_r41649928
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/jdbc/JdbcDialects.scala ---
    @@ -287,3 +288,30 @@ case object MsSqlServerDialect extends JdbcDialect {
         case _ => None
       }
     }
    +
    +/**
    + * :: DeveloperApi ::
    + * Default Apache Derby dialect, mapping real on read
    + * and string/byte/short/boolean/decimal on write.
    + */
    +@DeveloperApi
    +case object DerbyDialect extends JdbcDialect {
    +  override def canHandle(url: String): Boolean = 
url.startsWith("jdbc:derby")
    +  override def getCatalystType(
    +      sqlType: Int, typeName: String, size: Int, md: MetadataBuilder): 
Option[DataType] = {
    +    if (sqlType == Types.REAL) Some(FloatType) else None
    --- End diff --
    
    
    
    Thanks for the review comments, Reynold and Michael. Hopefully, my last 
commit (e6022ed) addresses your concerns:
    
    o I adjusted the indentation of a method signature, per Reynold's advice.
    
    o I simplified an "if" expression, also per Reynold's advice. However, I 
have a question about this change (see my comment above on the line in 
question).
    
    Thanks,
    -Rick



---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to