Skip to content

Commit

Permalink
[SPARK-26555][SQL][BRANCH-2.4] make ScalaReflection subtype checking …
Browse files Browse the repository at this point in the history
…thread safe

This is a Spark 2.4.x backport of apache#24085. Original description follows below:

## What changes were proposed in this pull request?

Make ScalaReflection subtype checking thread safe by adding a lock. There is a thread safety bug in the <:< operator in all versions of scala (scala/bug#10766).

## How was this patch tested?

Existing tests and a new one for the new subtype checking function.

Closes apache#24913 from JoshRosen/joshrosen/SPARK-26555-branch-2.4-backport.

Authored-by: mwlon <mloncaric@hmc.edu>
Signed-off-by: Josh Rosen <rosenville@gmail.com>
  • Loading branch information
mwlon authored and Izek Greenfield committed Nov 4, 2019
1 parent 907c562 commit fc660c8
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 98 deletions.
Loading

0 comments on commit fc660c8

Please sign in to comment.