GitHub user rdblue opened a pull request: https://github.com/apache/spark/pull/15062
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. You can merge this pull request into a Git repository by running: $ git pull https://github.com/rdblue/spark SPARK-17424-fix-unsound-reflect-substitution Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15062.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #15062 ---- ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org