chris-twiner commented on code in PR #50023:
URL: https://github.com/apache/spark/pull/50023#discussion_r1971693941
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/DeserializerBuildHelper.scala:
##########
@@ -270,6 +270,8 @@ object DeserializerBuildHelper {
enc: AgnosticEncoder[_],
path: Expression,
walkedTypePath: WalkedTypePath): Expression = enc match {
+ case ae: AgnosticExpressionPathEncoder[_] =>
+ ae.fromCatalyst(path)
Review Comment:
The "SPARK-49960: joinWith custom encoder" in DatasetSuite tests it
```scala
val ds2 = spark.createDataset[ClassData](Seq(ClassData("a", 1),
ClassData("b", 2)))(CustomPathEncoder.custClassDataEnc)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]