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

    https://github.com/apache/spark/pull/21370#discussion_r191080057
  
    --- Diff: python/pyspark/sql/tests.py ---
    @@ -3040,6 +3040,50 @@ def test_csv_sampling_ratio(self):
                 .csv(rdd, samplingRatio=0.5).schema
             self.assertEquals(schema, StructType([StructField("_c0", 
IntegerType(), True)]))
     
    +    def _get_content(self, content):
    +        """
    +        Strips leading spaces from content up to the first '|' in each 
line.
    +        """
    +        import re
    +        pattern = re.compile(r'^ *\|', re.MULTILINE)
    --- End diff --
    
    Thanks! Fix it in 94f3414.


---

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

Reply via email to