From issues-return-181578-archive-asf-public=cust-asf.ponee.io@spark.apache.org Sat Jan 13 16:42:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id C09C018077A for ; Sat, 13 Jan 2018 16:42:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AE1BC160C22; Sat, 13 Jan 2018 15:42:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0A1EE160C1C for ; Sat, 13 Jan 2018 16:42:03 +0100 (CET) Received: (qmail 4146 invoked by uid 500); 13 Jan 2018 15:42:03 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 4137 invoked by uid 99); 13 Jan 2018 15:42:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jan 2018 15:42:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A4A73C2473 for ; Sat, 13 Jan 2018 15:42:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.211 X-Spam-Level: X-Spam-Status: No, score=-100.211 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id iyeg5gElDV8g for ; Sat, 13 Jan 2018 15:42:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 472CA5F54E for ; Sat, 13 Jan 2018 15:42:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 77D3EE0EEF for ; Sat, 13 Jan 2018 15:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2D3EB212FC for ; Sat, 13 Jan 2018 15:42:00 +0000 (UTC) Date: Sat, 13 Jan 2018 15:42:00 +0000 (UTC) From: "Sean Owen (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SPARK-23043) Upgrade json4s-jackson to 3.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-23043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Owen reassigned SPARK-23043: --------------------------------- Assignee: Takako Shimamoto Priority: Minor (was: Major) > Upgrade json4s-jackson to 3.5.3 > ------------------------------- > > Key: SPARK-23043 > URL: https://issues.apache.org/jira/browse/SPARK-23043 > Project: Spark > Issue Type: Improvement > Components: Build > Affects Versions: 2.2.1 > Reporter: Takako Shimamoto > Assignee: Takako Shimamoto > Priority: Minor > Fix For: 2.4.0 > > > Spark tried to upgrade json4s several times, but failed and still use a few years old version 3.2.11. I hope the situation will improve soon. > h3. Migration from 3.2.11 > Changes that affect Spark are as follows. > h4. scalap dependency > Since 3.3, json4s has its own scalap fork and doesn't depend on scala-lang's scalap. > https://github.com/json4s/json4s/issues/108 > Whereas Spark has added a scala-lang's scalap dependency in POM by the following issue. > https://github.com/apache/spark/pull/480 > We need to remove scala-lang's scalap dependency for json4s 3.5.3 (same solution as in json4s). > h4. The behavior of \ function has changed > Please see https://github.com/json4s/json4s/pull/309 > h5. a single element > {code} > val json = > """[ { > | "jobId" : 0, > | "status" : "SUCCEEDED" > |} ]""".stripMargin > val ast = JsonMethods.parse(json) > {code} > * version 3.2.11 > {code} > ast \ "status" // => JString(SUCCEEDED) > ast \\ "status" // => JString(SUCCEEDED) > {code} > * version 3.5.3 > {code} > ast \ "status" // => JArray(List(JString(SUCCEEDED))) > ast \\ "status" // => JString(SUCCEEDED) > {code} > h5. more than a single elements > {code} > val json = > """[ { > | "jobId" : 1, > | "status" : "FAILED" > |}, { > | "jobId" : 0, > | "status" : "SUCCEEDED" > |} ]""".stripMargin > val ast = JsonMethods.parse(json) > {code} > * version 3.2.11 > {code} > ast \ "status" // => JArray(List(JString(FAILED), JString(SUCCEEDED))) > ast \\ "status" // => JObject(List((status,JString(FAILED)), (status,JString(SUCCEEDED)))) > {code} > * version 3.5.3 > {code} > ast \ "status" // => JArray(List(JString(FAILED), JString(SUCCEEDED))) > ast \\ "status" // => JObject(List((status,JString(FAILED)), (status,JString(SUCCEEDED)))) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org