You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by HyukjinKwon <gi...@git.apache.org> on 2018/10/17 09:18:13 UTC

[GitHub] spark pull request #20503: [SPARK-23299][SQL][PYSPARK] Fix __repr__ behaviou...

Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20503#discussion_r225844655
  
    --- Diff: python/pyspark/sql/tests.py ---
    @@ -234,6 +234,10 @@ def test_empty_row(self):
             row = Row()
             self.assertEqual(len(row), 0)
     
    +    def test_row_without_column_name(self):
    +        row = Row("Alice", 11)
    --- End diff --
    
    Can we add a doctest for this usage (Row as objects not as a namedtuple class), and documentation in `Row` at `types.py`?


---

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