MaxGekk commented on pull request #35412:
URL: https://github.com/apache/spark/pull/35412#issuecomment-1033531823
> I didn't find how to call the new method in this code, so I kept the
original method @MaxGekk
@LuciferYang Something like this:
```scala
val catalogType2 = IntegerType
val ct = ctx.addReferenceObj("catalogType", catalogType2,
catalogType2.getClass.getName)
...
throw QueryExecutionErrors.castingCauseOverflowError($c, "$ct");
```
--
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]