Skip to content

Commit

Permalink
spark 3.4/3.5 compatibility issue with ProductEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolanrensen committed Mar 25, 2024
1 parent 0db290a commit 37eec64
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,9 @@ object KotlinTypeInference : Serializable {
ProductEncoder<Any>(
/* clsTag = */ ClassTag.apply(jClass),
/* fields = */ params.asScalaSeq(),
//#if sparkMinor >= 3.5
/* outerPointerGetter = */ OuterScopes.getOuterScope(jClass).toOption(),
//#endif
)
}

Expand All @@ -558,7 +560,9 @@ object KotlinTypeInference : Serializable {
ProductEncoder<Any>(
/* clsTag = */ ClassTag.apply(jClass),
/* fields = */ params.asScalaSeq(),
//#if sparkMinor >= 3.5
/* outerPointerGetter = */ OuterScopes.getOuterScope(jClass).toOption(),
//#endif
)
}

Expand Down

0 comments on commit 37eec64

Please sign in to comment.