tedyu edited a comment on pull request #30984:
URL: https://github.com/apache/spark/pull/30984#issuecomment-757415538


   Was the above output obtained with or without my change ?
   ```
   scala> 
spark.range(1).toDF("GetJsonObject(phone#37,$.phone)").write.option("header", 
true).mode("overwrite").csv("/tmp/foo")
   
   scala> spark.read.option("header", true).csv("/tmp/foo").show()
   +-------------------------------+
   |GetJsonObject(phone#37,$.phone)|
   +-------------------------------+
   |                              0|
   +-------------------------------+
   ```
   I got the above with my change.
   
   I am also open to suggestion on alternative approach.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to