Skip to content
  • Takeshi Yamamuro's avatar
    04901dd0
    [SPARK-20431][SQL] Specify a schema by using a DDL-formatted string · 04901dd0
    Takeshi Yamamuro authored
    ## What changes were proposed in this pull request?
    This pr supported a DDL-formatted string in `DataFrameReader.schema`.
    This fix could make users easily define a schema without importing  `o.a.spark.sql.types._`.
    
    ## How was this patch tested?
    Added tests in `DataFrameReaderWriterSuite`.
    
    Author: Takeshi Yamamuro <yamamuro@apache.org>
    
    Closes #17719 from maropu/SPARK-20431.
    04901dd0
    [SPARK-20431][SQL] Specify a schema by using a DDL-formatted string
    Takeshi Yamamuro authored
    ## What changes were proposed in this pull request?
    This pr supported a DDL-formatted string in `DataFrameReader.schema`.
    This fix could make users easily define a schema without importing  `o.a.spark.sql.types._`.
    
    ## How was this patch tested?
    Added tests in `DataFrameReaderWriterSuite`.
    
    Author: Takeshi Yamamuro <yamamuro@apache.org>
    
    Closes #17719 from maropu/SPARK-20431.
Loading