yeikel commented on issue #16881: [SPARK-19543] from_json fails when the input 
row is empty
URL: https://github.com/apache/spark/pull/16881#issuecomment-451056164
 
 
   @HyukjinKwon I've tried your suggestion with the following attempt : 
   
   ```
   val empty = df.na.fill("{}",Seq("phone"))
   val json_columns = df.withColumn("phone", from_json($"phone", schema))
   json_columns.show
   ```
   
   But it still gave me the same error. Any suggestions? 
   
   Thank you
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to