panbingkun commented on PR #45177:
URL: https://github.com/apache/spark/pull/45177#issuecomment-1953713901

   > Shall we make the error message more explicit?
   > 
   > ```
   > The <paramIndex>th parameter requires the <requiredType> type, ...
   > ```
   > 
   > or something more accurate in English. cc @srielau
   
   How about the following error message?
   ```
   The <paramIndex>-th parameter of function <functionName> requires the 
<requiredType> type, however <inputSql> has the type <inputType>.
   ```
   
   I found a reference:
   
https://github.com/alibaba/sentinel-golang/blob/08071855bc67423777353c6e02f1390b419172b1/core/hotspot/rule.go#L79-L80
   <img width="751" alt="image" 
src="https://github.com/apache/spark/assets/15246973/07276789-15cd-4ad3-b2fd-4809671df1dc";>
   
   
   


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to