Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18266#discussion_r137717728
  
    --- Diff: docs/sql-programming-guide.md ---
    @@ -1334,7 +1334,14 @@ the following case-insensitive options:
         <td>
          The database column data types to use instead of the defaults, when 
creating the table. Data type information should be specified in the same 
format as CREATE TABLE columns syntax (e.g: <code>"name CHAR(64), comments 
VARCHAR(1024)")</code>. The specified types should be valid spark sql data 
types. This option applies only to writing.
         </td>
    -  </tr>  
    +  </tr>
    +
    +  <tr>
    +    <td><code>customDataFrameColumnTypes</code></td>
    +    <td>
    +     The DataFrame column data types to use instead of the defaults when 
reading data from jdbc API. (e.g: <code>"id DECIMAL(38, 0), name 
STRING")</code>. The specified types should be valid spark sql data types. This 
option applies only to reading.
    --- End diff --
    
    This is not limited to DataFrame. 
    
    > The customized column types to use for reading data from JDBC connectors. 
For example, <code>"id DECIMAL(38, 0), name STRING")</code>. The specified 
types should be valid spark sql data types. This option applies only to reading.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to