[jira] [Updated] (SPARK-26544) escape string when serialize map/array to make it a valid json (keep alignment with hive)
[ https://issues.apache.org/jira/browse/SPARK-26544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dongjoon Hyun updated SPARK-26544: -- Affects Version/s: (was: 3.0.0) 3.1.0 > escape string when serialize map/array to make it a valid json (keep > alignment with hive) > - > > Key: SPARK-26544 > URL: https://issues.apache.org/jira/browse/SPARK-26544 > Project: Spark > Issue Type: Improvement > Components: SQL >Affects Versions: 3.1.0 >Reporter: EdisonWang >Priority: Major > > when reading a hive table with map/array type, the string serialized by > thrift server is not a valid json, while hive is. > For example, select a field whose type is map, the spark > thrift server returns > > {code:java} > {"author_id":"123","log_pb":"{"impr_id":"20181231"}","request_id":"001"} > {code} > > while hive thriftserver returns > > {code:java} > {"author_id":"123", "log_pb":"{\"impr_id\":\"20181231\"}","request_id":"001"} > {code} > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-26544) escape string when serialize map/array to make it a valid json (keep alignment with hive)
[ https://issues.apache.org/jira/browse/SPARK-26544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dongjoon Hyun updated SPARK-26544: -- Affects Version/s: (was: 2.4.0) 3.0.0 > escape string when serialize map/array to make it a valid json (keep > alignment with hive) > - > > Key: SPARK-26544 > URL: https://issues.apache.org/jira/browse/SPARK-26544 > Project: Spark > Issue Type: Improvement > Components: SQL >Affects Versions: 3.0.0 >Reporter: EdisonWang >Priority: Major > > when reading a hive table with map/array type, the string serialized by > thrift server is not a valid json, while hive is. > For example, select a field whose type is map, the spark > thrift server returns > > {code:java} > {"author_id":"123","log_pb":"{"impr_id":"20181231"}","request_id":"001"} > {code} > > while hive thriftserver returns > > {code:java} > {"author_id":"123", "log_pb":"{\"impr_id\":\"20181231\"}","request_id":"001"} > {code} > -- This message was sent by Atlassian JIRA (v7.6.14#76016) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-26544) escape string when serialize map/array to make it a valid json (keep alignment with hive)
[ https://issues.apache.org/jira/browse/SPARK-26544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] EdisonWang updated SPARK-26544: --- Summary: escape string when serialize map/array to make it a valid json (keep alignment with hive) (was: escape string when serialize map/array make it a valid json (keep alignment with hive)) > escape string when serialize map/array to make it a valid json (keep > alignment with hive) > - > > Key: SPARK-26544 > URL: https://issues.apache.org/jira/browse/SPARK-26544 > Project: Spark > Issue Type: Improvement > Components: SQL >Affects Versions: 2.4.0 >Reporter: EdisonWang >Priority: Major > > when reading a hive table with map/array type, the string serialized by > thrift server is not a valid json, while hive is. > For example, select a field whose type is map, the spark > thrift server returns > > {code:java} > {"author_id":"123","log_pb":"{"impr_id":"20181231"}","request_id":"001"} > {code} > > while hive thriftserver returns > > {code:java} > {"author_id":"123", "log_pb":"{\"impr_id\":\"20181231\"}","request_id":"001"} > {code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org