Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/20567
  
    Seems it happened to fix this case too:
    
    ```python
    spark.conf.set("spark.sql.execution.arrow.enabled", "false")
    df = spark.createDataFrame([[bytearray("a")]])
    df.toPandas()
    spark.conf.set("spark.sql.execution.arrow.enabled", "true")
    df.toPandas()
    ```
    
    **Before**
    
    ```
         _1
    0  [97]
      _1
    0  a
    ```
    
    
    **After**
    
    ```
         _1
    0  [97]
    ... UserWarning...
         _1
    0  [97]
    ```


---

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

Reply via email to