GitHub user BryanCutler opened a pull request:

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

    [SPARK-17805][PYSPARK] Fix in sqlContext.read.text when pass in list of 
paths

    ## What changes were proposed in this pull request?
    If given a list of paths, `pyspark.sql.readwriter.text` will attempt to use 
an undefined variable `paths`.  This change checks if the param `paths` is a 
basestring and then converts it to a list, so that the same variable `paths` 
can be used for both cases
    
    
    ## How was this patch tested?
    Added unit test for reading list of files
    


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

    $ git pull https://github.com/BryanCutler/spark 
sql-readtext-paths-SPARK-17805

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

    https://github.com/apache/spark/pull/15379.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 #15379
    
----
commit ade9823c9a58ada9693d94126433e07e23bf6b6a
Author: Bryan Cutler <[email protected]>
Date:   2016-10-06T18:34:16Z

    fix in pyspark sql read.text to accept list of paths

----


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