Skip to content

Commit

Permalink
Revert "#135 bump jackson version to 2.10.4 (#136)"
Browse files Browse the repository at this point in the history
This reverts commit a26aa4b.
  • Loading branch information
woyumen4597 committed Aug 6, 2020
1 parent e7782e4 commit ed3a65f
Show file tree
Hide file tree
Showing 27 changed files with 99 additions and 52 deletions.
4 changes: 4 additions & 0 deletions common/network-yarn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 0 additions & 4 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-reflect</artifactId>
</dependency>
<dependency>
<groupId>org.json4s</groupId>
<artifactId>json4s-jackson_${scala.binary.version}</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import org.apache.spark.util.Utils
* (2) the Spark version of the client / server
* (3) an optional message
*/
@JsonInclude(Include.NON_ABSENT)
@JsonInclude(Include.NON_NULL)
@JsonAutoDetect(getterVisibility = Visibility.ANY, setterVisibility = Visibility.ANY)
@JsonPropertyOrder(alphabetic = true)
private[rest] abstract class SubmitRestProtocolMessage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import org.apache.spark.internal.Logging
* There is no particular relationship between an operation scope and a stage or a job.
* A scope may live inside one stage (e.g. map) or span across multiple jobs (e.g. take).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonInclude(Include.NON_NULL)
@JsonPropertyOrder(Array("id", "name", "parent"))
private[spark] class RDDOperationScope(
val name: String,
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/status/KVUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private[spark] object KVUtils extends Logging {
private[spark] class KVStoreScalaSerializer extends KVStoreSerializer {

mapper.registerModule(DefaultScalaModule)
mapper.setSerializationInclusion(JsonInclude.Include.NON_ABSENT)
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL)

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private[v1] class JacksonMessageWriter extends MessageBodyWriter[Object]{
}
mapper.registerModule(com.fasterxml.jackson.module.scala.DefaultScalaModule)
mapper.enable(SerializationFeature.INDENT_OUTPUT)
mapper.setSerializationInclusion(JsonInclude.Include.NON_ABSENT)
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL)
mapper.setDateFormat(JacksonMessageWriter.makeISODateFormat)

override def isWriteable(
Expand Down
14 changes: 7 additions & 7 deletions dev/deps/spark-deps-hadoop-2.6
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ htrace-core-3.0.4.jar
httpclient-4.5.6.jar
httpcore-4.4.10.jar
ivy-2.4.0.jar
jackson-annotations-2.10.4.jar
jackson-core-2.10.4.jar
jackson-annotations-2.6.7.jar
jackson-core-2.6.7.jar
jackson-core-asl-1.9.13.jar
jackson-databind-2.10.4.jar
jackson-dataformat-yaml-2.10.4.jar
jackson-databind-2.6.7.1.jar
jackson-dataformat-yaml-2.6.7.jar
jackson-jaxrs-1.9.13.jar
jackson-mapper-asl-1.9.13.jar
jackson-module-jaxb-annotations-2.10.4.jar
jackson-module-paranamer-2.10.4.jar
jackson-module-scala_2.11-2.10.4.jar
jackson-module-jaxb-annotations-2.6.7.jar
jackson-module-paranamer-2.7.9.jar
jackson-module-scala_2.11-2.6.7.1.jar
jackson-xc-1.9.13.jar
janino-3.0.9.jar
javassist-3.18.1-GA.jar
Expand Down
14 changes: 7 additions & 7 deletions dev/deps/spark-deps-hadoop-2.7
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ htrace-core-3.1.0-incubating.jar
httpclient-4.5.6.jar
httpcore-4.4.10.jar
ivy-2.4.0.jar
jackson-annotations-2.10.4.jar
jackson-core-2.10.4.jar
jackson-annotations-2.6.7.jar
jackson-core-2.6.7.jar
jackson-core-asl-1.9.13.jar
jackson-databind-2.10.4.jar
jackson-dataformat-yaml-2.10.4.jar
jackson-databind-2.6.7.1.jar
jackson-dataformat-yaml-2.6.7.jar
jackson-jaxrs-1.9.13.jar
jackson-mapper-asl-1.9.13.jar
jackson-module-jaxb-annotations-2.10.4.jar
jackson-module-paranamer-2.10.4.jar
jackson-module-scala_2.11-2.10.4.jar
jackson-module-jaxb-annotations-2.6.7.jar
jackson-module-paranamer-2.7.9.jar
jackson-module-scala_2.11-2.6.7.1.jar
jackson-xc-1.9.13.jar
janino-3.0.9.jar
javassist-3.18.1-GA.jar
Expand Down
18 changes: 9 additions & 9 deletions dev/deps/spark-deps-hadoop-3.1
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ htrace-core4-4.1.0-incubating.jar
httpclient-4.5.6.jar
httpcore-4.4.10.jar
ivy-2.4.0.jar
jackson-annotations-2.10.4.jar
jackson-core-2.10.4.jar
jackson-annotations-2.6.7.jar
jackson-core-2.6.7.jar
jackson-core-asl-1.9.13.jar
jackson-databind-2.10.4.jar
jackson-dataformat-yaml-2.10.4.jar
jackson-jaxrs-base-2.10.4.jar
jackson-jaxrs-json-provider-2.10.4.jar
jackson-databind-2.6.7.1.jar
jackson-dataformat-yaml-2.6.7.jar
jackson-jaxrs-base-2.7.8.jar
jackson-jaxrs-json-provider-2.7.8.jar
jackson-mapper-asl-1.9.13.jar
jackson-module-jaxb-annotations-2.10.4.jar
jackson-module-paranamer-2.10.4.jar
jackson-module-scala_2.11-2.10.4.jar
jackson-module-jaxb-annotations-2.6.7.jar
jackson-module-paranamer-2.7.9.jar
jackson-module-scala_2.11-2.6.7.1.jar
janino-3.0.9.jar
javassist-3.18.1-GA.jar
javax.annotation-api-1.2.jar
Expand Down
4 changes: 4 additions & 0 deletions external/docker-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions external/flume-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions external/flume-sink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions external/flume/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions external/kafka-0-8-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions external/kafka-0-8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions external/kinesis-asl-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
11 changes: 4 additions & 7 deletions external/kinesis-asl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -69,13 +73,6 @@
<version>${aws.kinesis.producer.version}</version>
<scope>test</scope>
</dependency>
<!-- manage this up explicitly to match Spark; com.amazonaws:aws-java-sdk-pom specifies
2.6.7 but says we can manage it up -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-cbor</artifactId>
<version>${fasterxml.jackson.version}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions external/spark-ganglia-lgpl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions hadoop-cloud/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@
<scala.version>2.11.12</scala.version>
<scala.binary.version>2.11</scala.binary.version>
<codehaus.jackson.version>1.9.13</codehaus.jackson.version>
<fasterxml.jackson.version>2.10.4</fasterxml.jackson.version>
<fasterxml.jackson.version>2.6.7</fasterxml.jackson.version>
<fasterxml.jackson.databind.version>2.6.7.1</fasterxml.jackson.databind.version>
<snappy.version>1.1.7.1</snappy.version>
<netlib.java.version>1.1.2</netlib.java.version>
<calcite.version>1.2.0-incubating</calcite.version>
Expand Down Expand Up @@ -641,7 +642,7 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${fasterxml.jackson.version}</version>
<version>${fasterxml.jackson.databind.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand All @@ -653,7 +654,7 @@
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-scala_${scala.binary.version}</artifactId>
<version>${fasterxml.jackson.version}</version>
<version>${fasterxml.jackson.databind.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
Expand Down
4 changes: 4 additions & 0 deletions resource-managers/kubernetes/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions resource-managers/kubernetes/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions resource-managers/mesos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 4 additions & 0 deletions resource-managers/yarn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,6 @@ class JsonExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper with
"1234")
}

test("some big value") {
val value = "x" * 3000
checkEvaluation(
GetJsonObject(NonFoldableLiteral((s"""{"big": "$value"}""")),
NonFoldableLiteral("$.big")), value)
}

val jsonTupleQuery = Literal("f1") ::
Literal("f2") ::
Literal("f3") ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ private class LongLongTupleConverter extends Converter[(Object, Object), (Long,
}

override def getInputType(typeFactory: TypeFactory): JavaType = {
val objectType = typeFactory.constructType(classOf[Object])
typeFactory.constructSimpleType(classOf[(_, _)], Array(objectType, objectType))
val objectType = typeFactory.uncheckedSimpleType(classOf[Object])
typeFactory.constructSimpleType(classOf[(_, _)], classOf[(_, _)], Array(objectType, objectType))
}

override def getOutputType(typeFactory: TypeFactory): JavaType = {
val longType = typeFactory.constructType(classOf[Long])
typeFactory.constructSimpleType(classOf[(_, _)], Array(longType, longType))
val longType = typeFactory.uncheckedSimpleType(classOf[Long])
typeFactory.constructSimpleType(classOf[(_, _)], classOf[(_, _)], Array(longType, longType))
}
}
4 changes: 4 additions & 0 deletions sql/hive-thriftserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
<parent>
<groupId>org.apache.spark</groupId>
<artifactId>spark-parent_2.11</artifactId>
<<<<<<< HEAD
<version>2.4.1-kylin-r39</version>
=======
<version>2.4.1-kylin-r40</version>
>>>>>>> parent of a26aa4b7a5... #135 bump jackson version to 2.10.4 (#136)
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down

0 comments on commit ed3a65f

Please sign in to comment.