Github user rama-mullapudi commented on the pull request:

    https://github.com/apache/spark/pull/8374#issuecomment-143747859
  
    Intent of the change is make field metadata available to getJDBCType so it 
can be used by dialects to handle special cases. One I was trying to solve is 
by default java string types are stored as TEXT data type in database and most 
databases doesn't support TEXT data type, so trying to use VARCHAR which needs 
max length to create a varchar field in database.
    
    What would be the best way to handle custom dialects, since its 
developerapi and can change.
    
    Thanks for looking in to the change and will update code to use 
java.sql.Types.VARCHAR instead of java.sql.Types.CHAR


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

Reply via email to