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