Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-17424] Fix unsound substitution bug in ScalaReflection.
## What changes were proposed in this pull request? This method gets a type's primary constructor and fills in type parameters with concrete types. For example, `MapPartitions[T, U] -> MapPartitions[Int, String]`. This Substitution fails when the actual type args are empty because they are still unknown. Instead, when there are no resolved types to subsitute, this returns the original args with unresolved type parameters. ## How was this patch tested? This doesn't affect substitutions where the type args are determined. This fixes our case where the actual type args are empty and our job runs successfully. Author: Ryan Blue <blue@apache.org> Closes apache#15062 from rdblue/SPARK-17424-fix-unsound-reflect-substitution.
- Loading branch information