Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/22591
  
    ```
    // before
    ds.withColumnRenamed("first_name", "firstName")
      .withColumnRenamed("last_name", "lastName")
      .withColumnRenamed("postal_code", "postalCode")
    
    // after
    ds.withColumnsRenamed(
      "first_name" -> "firstName",
      "last_name" -> "lastName",
      "postal_code" -> "postalCode"
    )
    // or
    ds.withColumnsRenamed(Map(
      "first_name" -> "firstName",
      "last_name" -> "lastName",
      "postal_code" -> "postalCode"
    ))
    ```
    
    This doesn't looks useful or making the codes even shorter. I don't think 
we should add this.


---

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

Reply via email to