Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B2184200C57 for ; Sat, 1 Apr 2017 00:48:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B088D160B8C; Fri, 31 Mar 2017 22:48:49 +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 2C6CF160B80 for ; Sat, 1 Apr 2017 00:48:49 +0200 (CEST) Received: (qmail 18741 invoked by uid 500); 31 Mar 2017 22:48:47 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 18724 invoked by uid 99); 31 Mar 2017 22:48:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Mar 2017 22:48:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8FFA4DFDCD; Fri, 31 Mar 2017 22:48:46 +0000 (UTC) From: kunalkhamar To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark issue #17486: [SPARK-20164][SQL] AnalysisException not tolerant of nul... Content-Type: text/plain Message-Id: <20170331224846.8FFA4DFDCD@git1-us-west.apache.org> Date: Fri, 31 Mar 2017 22:48:46 +0000 (UTC) archived-at: Fri, 31 Mar 2017 22:48:49 -0000 Github user kunalkhamar commented on the issue: https://github.com/apache/spark/pull/17486 @gatorsmile Verified the behaviour using this, it makes `plan` null upon deserialization. ``` import java.io._ import org.apache.spark.sql.AnalysisException lazy val exception = new AnalysisException("", None, None, plan = None) // Serialize exception lazy val bo = new ByteArrayOutputStream() lazy val o = new ObjectOutputStream(bo) o.writeObject(exception) lazy val bytes = bo.toByteArray // Deserialize ex lazy val bi = new ByteArrayInputStream(bytes) lazy val i = new ObjectInputStream(bi) lazy val deserialized = i.readObject.asInstanceOf[AnalysisException] println(deserialized.plan) ``` Not sure what to add and where in the scala-style-guide? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org