Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/21427
  
    Thing is, we already do similar thing via createDataFrame with list and 
dictionary. I believe @icexelloss  borrowed this idea from there:
    
    ```
    >>> spark.createDataFrame([["a", 1], ["c", 2]], "a: string, b: int").show()
    +---+---+
    |  a|  b|
    +---+---+
    |  a|  1|
    |  c|  2|
    +---+---+
    
    >>> spark.createDataFrame([{"b":1, "a": "a"}, {"b": 2, "a": "c"}], "a: 
string, b: int").show()
    +---+---+
    |  a|  b|
    +---+---+
    |  a|  1|
    |  c|  2|
    +---+---+
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to