GitHub user davies opened a pull request:

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

    [SPARK-16700] [PYSPARK] [SQL] create DataFrame from dict/Row with schema

    ## What changes were proposed in this pull request?
    
    In 2.0, we verify the data type against schema for every row for safety, 
but with performance cost, this PR make it optional. 
    
    When we verify the data type for StructType, it does not support all the 
types we support in infer schema (for example, dict), this PR fix that to make 
them consistent.
    
    For Row object which is created using named arguments, the order of fields 
are sorted by name, they may be not different than the order in provided 
schema, this PR fix that by ignore the order of fields in this case.
    
    ## How was this patch tested?
    
    Created regression tests for them.
    
    


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

    $ git pull https://github.com/davies/spark py_dict

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

    https://github.com/apache/spark/pull/14469.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 #14469
    
----
commit 3adb095809bea5a71e0393d17d60c20ac9249a1f
Author: Davies Liu <dav...@databricks.com>
Date:   2016-08-02T23:44:50Z

    createDataFrame from dict and Row

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to