mrk-andreev commented on code in PR #48288:
URL: https://github.com/apache/spark/pull/48288#discussion_r1793211426
##########
sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/functions/ScalarFunction.java:
##########
@@ -149,7 +149,7 @@ public interface ScalarFunction<R> extends BoundFunction {
* @return a result value
*/
default R produceResult(InternalRow input) {
- throw new SparkUnsupportedOperationException("_LEGACY_ERROR_TEMP_3146");
+ throw new
SparkUnsupportedOperationException("SCALAR_FUNCTION_NOT_COMPATIBLE");
Review Comment:
Fixed with
```
throw new SparkUnsupportedOperationException(
"SCALAR_FUNCTION_NOT_COMPATIBLE",
Map.of("scalarFunc", QuotingUtils.quoteIdentifier(name()))
);
```
I used `QuotingUtils.quoteIdentifier` instead `toSQLId` because this method
is unavaible from this location.
--
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]