Alex Khakhlyuk created SPARK-55373:
--------------------------------------

             Summary: Improve noHandlerFoundForExtension error message
                 Key: SPARK-55373
                 URL: https://issues.apache.org/jira/browse/SPARK-55373
             Project: Spark
          Issue Type: Bug
          Components: Connect
    Affects Versions: 4.1.1
            Reporter: Alex Khakhlyuk


Currently, Spark Connect Planner supports extension fields for Relation, 
Command, Expression protos. Extensions are processed through handlers. If a 
handler is not available for a given extension type, the planner will throw 
this error:
{code:java}
org.apache.spark.sql.connect.common.InvalidPlanInput: [INTERNAL_ERROR] No 
handler found for extension SQLSTATE: XX000 {code}
This error is not informative enough when debugging. I propose adding extension 
proto type url to the error message which will make it clear which extension is 
missing
{code:java}
org.apache.spark.sql.connect.common.InvalidPlanInput: [INTERNAL_ERROR] No 
handler found for extension type: 
type.googleapis.com/spark.connect.SubscribeToLiveQuery SQLSTATE: XX000 {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to