itholic commented on code in PR #47885:
URL: https://github.com/apache/spark/pull/47885#discussion_r1740274308


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala:
##########
@@ -919,6 +919,8 @@ object FunctionRegistry {
   registerInternalExpression[EWM]("ewm")
   registerInternalExpression[NullIndex]("null_index")
   registerInternalExpression[CastTimestampNTZToLong]("timestamp_ntz_to_long")
+  registerInternalExpression[FromProtobuf]("from_protobuf")
+  registerInternalExpression[ToProtobuf]("to_protobuf")

Review Comment:
   I added this since the `ProtobufFunctionsSuite` would fail as below without 
registering internal expression here:
   
   ```
   org.apache.spark.sql.AnalysisException: [UNRESOLVED_ROUTINE] Cannot resolve 
routine `from_protobuf` on search path [`system`.`builtin`, `system`.`session`, 
`spark_catalog`.`default`]. SQLSTATE: 42883
   ```
   
   Is there happen to any way to handle this without registering internal 
expression?



-- 
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]

Reply via email to