{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/9352","labels_url":"https://api.github.com/repos/apache/spark/issues/9352/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/9352/comments","events_url":"https://api.github.com/repos/apache/spark/issues/9352/events","html_url":"https://github.com/apache/spark/pull/9352","id":114002418,"number":9352,"title":"[SPARK-10849][SQL] Adding field metadata property to override default jdbc data source type mapping.","user":{"login":"sureshthalamati","id":13815184,"avatar_url":"https://avatars.githubusercontent.com/u/13815184?v=3","gravatar_id":"","url":"https://api.github.com/users/sureshthalamati","html_url":"https://github.com/sureshthalamati","followers_url":"https://api.github.com/users/sureshthalamati/followers","following_url":"https://api.github.com/users/sureshthalamati/following{/other_user}","gists_url":"https://api.github.com/users/sureshthalamati/gists{/gist_id}","starred_url":"https://api.github.com/users/sureshthalamati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sureshthalamati/subscriptions","organizations_url":"https://api.github.com/users/sureshthalamati/orgs","repos_url":"https://api.github.com/users/sureshthalamati/repos","events_url":"https://api.github.com/users/sureshthalamati/events{/privacy}","received_events_url":"https://api.github.com/users/sureshthalamati/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-29T08:33:40Z","updated_at":"2015-10-29T10:42:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/9352","html_url":"https://github.com/apache/spark/pull/9352","diff_url":"https://github.com/apache/spark/pull/9352.diff","patch_url":"https://github.com/apache/spark/pull/9352.patch"},"body":"This patch allows users to override default type mapping of  data frame field to database column type when writing data frame to jdbc data sources.  \r\n\r\nIn some cases user may want to use specific database data type mapping for fields based on the database configuration (page size , type of table spaces ..etc) instead of the defaults.  For example large varchar size  for all the columns may not fit in row size limits , user may want to use mix of varchar , and clob types. Max precision supported in some database systems might be less than the spark decimal precision, in such cases user can use this option to adjust the decimal type precision , and scale to match the target database. \r\n\r\nAdded a new field meta data property name    db.column.type .   I am not sure what is the convention for these type of property names. Please let me know it it needs to be changed. \r\n\r\n@rxin  @marmbrus"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/152143323","html_url":"https://github.com/apache/spark/pull/9352#issuecomment-152143323","issue_url":"https://api.github.com/repos/apache/spark/issues/9352","id":152143323,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T10:42:20Z","updated_at":"2015-10-29T10:42:20Z","body":"Merged build started."}}