GitHub user windpiger opened a pull request:

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

    [WIP][SPARK-19488][SQL]fix csv infer schema when the field is Nan/Inf etc

    ## What changes were proposed in this pull request?
    
    when csv infer schema, it does not use user defined csvoptions to parse the 
field, such as `inf`, `-inf` which are should be parsed to DoubleType
    
    this pr add  `options.nanValue`, `options.negativeInf`, 
`options.positiveIn`  to check if the field is a DoubleType
    
    ## How was this patch tested?


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

    $ git pull https://github.com/windpiger/spark fixinferInfSchemaCsv

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

    https://github.com/apache/spark/pull/16834.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 #16834
    
----
commit 1e181bc12652f531a979ac32bafcd0a8f967d33e
Author: windpiger <[email protected]>
Date:   2017-02-07T15:05:22Z

    [WIP][SPARK-19488][SQL]fix csv infer schema when the field is Nan/Inf etc

----


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