dongjoon-hyun commented on code in PR #52049:
URL: https://github.com/apache/spark/pull/52049#discussion_r2281248078
##########
core/src/main/scala/org/apache/spark/util/JsonProtocol.scala:
##########
@@ -66,6 +66,11 @@ private[spark] class JsonProtocolOptions(conf: SparkConf) {
private[spark] object JsonProtocol extends JsonUtils {
// TODO: Remove this file and put JSON serialization into each individual
class.
+ // SPARK-49872: Remove jackson JSON string length limitation.
+ mapper.getFactory.setStreamReadConstraints(
+ StreamReadConstraints.builder().maxStringLength(Int.MaxValue).build()
Review Comment:
Could you fix the compilation failure, @cloud-fan ?
```
[error]
/home/runner/work/spark/spark/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala:71:5:
not found: value StreamReadConstraints
[error]
StreamReadConstraints.builder().maxStringLength(Int.MaxValue).build()
[error] ^
[error] one error found
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]