mikhailnik-db commented on code in PR #48748:
URL: https://github.com/apache/spark/pull/48748#discussion_r1854271919


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -1565,6 +1565,12 @@
     ],
     "sqlState" : "42710"
   },
+  "FUNCTION_AND_ORDER_EXPRESSION_MISMATCH" : {
+    "message" : [
+      "The arguments <functionArgs> of the function <functionName> do not 
match to ordering within group <orderExpr> when use DISTINCT."

Review Comment:
   Good idea. Now with the common `INVALID_WITHIN_GROUP_EXPRESSION` prefix, it 
looks like `Invalid function <funcName> with WITHIN GROUP. The function is 
invoked with DISTINCT and WITHIN GROUP but expressions <funcArg> and 
<orderingExpr> do not match. The WITHIN GROUP ordering expression must be 
picked from the function inputs.`



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