Skip to content

Conversation

@sameeragarwal
Copy link
Member

What changes were proposed in this pull request?

This patch fixes a number of com.esotericsoftware.kryo.KryoException: java.lang.NullPointerException exceptions reported in [SPARK-15604], [SPARK-14752] etc. (while executing sparkSQL queries with the kryo serializer) by explicitly implementing KryoSerialization for LazilyGenerateOrdering.

How was this patch tested?

  1. Modified OrderingSuite so that all tests in the suite also test kryo serialization (for both interpreted and generated ordering).
  2. Manually verified TPC-DS q1.

@SparkQA
Copy link

SparkQA commented Jun 2, 2016

Test build #59838 has finished for PR 13466 at commit 1d98085.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class LazilyGeneratedOrdering(val ordering: Seq[SortOrder])

@hvanhovell
Copy link
Contributor

LGTM FWIW

@rxin
Copy link
Contributor

rxin commented Jun 2, 2016

Merging in master/2.0.

asfgit pushed a commit that referenced this pull request Jun 2, 2016
…enerateOrdering

## What changes were proposed in this pull request?

This patch fixes a number of `com.esotericsoftware.kryo.KryoException: java.lang.NullPointerException` exceptions reported in [SPARK-15604], [SPARK-14752] etc. (while executing sparkSQL queries with the kryo serializer) by explicitly implementing `KryoSerialization` for `LazilyGenerateOrdering`.

## How was this patch tested?

1. Modified `OrderingSuite` so that all tests in the suite also test kryo serialization (for both interpreted and generated ordering).
2. Manually verified TPC-DS q1.

Author: Sameer Agarwal <sameer@databricks.com>

Closes #13466 from sameeragarwal/kryo.

(cherry picked from commit 09b3c56)
Signed-off-by: Reynold Xin <rxin@databricks.com>
@asfgit asfgit closed this in 09b3c56 Jun 2, 2016
danielli90 pushed a commit to MobiusForSpark/spark that referenced this pull request Jun 2, 2016
…enerateOrdering

## What changes were proposed in this pull request?

This patch fixes a number of `com.esotericsoftware.kryo.KryoException: java.lang.NullPointerException` exceptions reported in [SPARK-15604], [SPARK-14752] etc. (while executing sparkSQL queries with the kryo serializer) by explicitly implementing `KryoSerialization` for `LazilyGenerateOrdering`.

## How was this patch tested?

1. Modified `OrderingSuite` so that all tests in the suite also test kryo serialization (for both interpreted and generated ordering).
2. Manually verified TPC-DS q1.

Author: Sameer Agarwal <sameer@databricks.com>

Closes apache#13466 from sameeragarwal/kryo.

(cherry picked from commit 09b3c56)
Signed-off-by: Reynold Xin <rxin@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants