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

    https://github.com/apache/spark/pull/22653#discussion_r223534303
  
    --- Diff: python/pyspark/sql/tests.py ---
    @@ -1149,6 +1149,75 @@ def test_infer_schema(self):
             result = self.spark.sql("SELECT l[0].a from test2 where d['key'].d 
= '2'")
             self.assertEqual(1, result.head()[0])
     
    +    def test_infer_schema_specification(self):
    +        from decimal import Decimal
    +
    +        class A(object):
    +            def __init__(self):
    +                self.a = 1
    +
    +        data = [
    +            True,
    +            1,
    +            "a",
    +            u"a",
    --- End diff --
    
    nit: since this is for unicode string, how about using a non-ascii string?


---

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

Reply via email to