GitHub user gatorsmile opened a pull request:

    https://github.com/apache/spark/pull/17171

    [SPARK-19830] [SQL] Add parseTableSchema API to ParserInterface

    ### What changes were proposed in this pull request?
    
    Specifying the table schema in DDL formats is needed for different 
scenarios. For example, 
    - [specifying the schema in SQL function `from_json` using DDL 
formats](https://issues.apache.org/jira/browse/SPARK-19637), which is suggested 
by @marmbrus , 
    - [specifying the customized JDBC data 
types](https://github.com/apache/spark/pull/16209). 
    
    These two PRs need users to use the JSON format to specify the table 
schema. This is not user friendly. 
    
    This PR is to provide a `parseTableSchema` API in `ParserInterface`. 
    
    ### How was this patch tested?
    Added a test suite `TableSchemaParserSuite`

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gatorsmile/spark parseDDLStmt

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/17171.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #17171
    
----
commit 50f74d26ec1bc37c5f5bea054da60a1910778e46
Author: Xiao Li <[email protected]>
Date:   2017-03-06T04:18:20Z

    add parseTableSchema API

----


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