spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-17805) sqlContext.read.text() does not work with a list of paths
Date Fri, 07 Oct 2016 07:28:21 GMT

     [ https://issues.apache.org/jira/browse/SPARK-17805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Reynold Xin resolved SPARK-17805.
---------------------------------
       Resolution: Fixed
         Assignee: Bryan Cutler
    Fix Version/s: 2.1.0
                   2.0.2

> sqlContext.read.text() does not work with a list of paths
> ---------------------------------------------------------
>
>                 Key: SPARK-17805
>                 URL: https://issues.apache.org/jira/browse/SPARK-17805
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 2.0.0
>            Reporter: Laurent Legrand
>            Assignee: Bryan Cutler
>            Priority: Minor
>             Fix For: 2.0.2, 2.1.0
>
>
> When I try to load multiple text files with the sqlContext, I get the
> following error:
> spark-2.0.0-bin-hadoop2.4/python/lib/pyspark.zip/pyspark/sql/readwriter.py",
> line 282, in text
> UnboundLocalError: local variable 'path' referenced before assignment
> According to the code
> (https://github.com/apache/spark/blob/master/python/pyspark/sql/readwriter.py#L291),
> the variable 'path' is not set if the argument is not a string.
> Laurent



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message