WangGuangxin opened a new pull request #23460: escape string to keep alignment 
with hive
URL: https://github.com/apache/spark/pull/23460
 
 
   ## What changes were proposed in this pull request?
   
   In spark thriftserver mode, escape string when serialize type map/array to 
make it a valid json, to keep alignment with hive.
   
   For example, select a field whose type is map<string, string>, currently the 
spark thrift server returns 
   {"author_id":"123","log_pb":"{"impr_id":"20181231"}","request_id":"001"}
    while hive thriftserver returns
   {"author_id":"123", "log_pb":"{\"impr_id\":\"20181231\"}","request_id":"001"
   
   see https://issues.apache.org/jira/browse/SPARK-26544
   
   ## How was this patch tested?
   unit test

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to