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

Burak Yavuz updated SPARK-18888:
--------------------------------
    Affects Version/s:     (was: 2.1.0)
                       2.0.2

> partitionBy in DataStreamWriter in Python throws _to_seq not defined
> --------------------------------------------------------------------
>
>                 Key: SPARK-18888
>                 URL: https://issues.apache.org/jira/browse/SPARK-18888
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark, Structured Streaming
>    Affects Versions: 2.0.2
>            Reporter: Burak Yavuz
>            Priority: Blocker
>
> {code}
> python/pyspark/sql/streaming.py in partitionBy(self, *cols)
>     716         if len(cols) == 1 and isinstance(cols[0], (list, tuple)):
>     717             cols = cols[0]
> --> 718         self._jwrite = 
> self._jwrite.partitionBy(_to_seq(self._spark._sc, cols))
>     719         return self
>     720 
> NameError: global name '_to_seq' is not defined
> {code}



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

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

Reply via email to