This is an automated email from the ASF dual-hosted git repository. gurwls223 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new 9e12bd7f2b40 [SPARK-48064][SQL] Update error messages for routine related error classes 9e12bd7f2b40 is described below commit 9e12bd7f2b40051f7540b14d85a3ea1f3e41f6a1 Author: allisonwang-db <allison.w...@databricks.com> AuthorDate: Thu May 2 12:23:50 2024 +0900 [SPARK-48064][SQL] Update error messages for routine related error classes ### What changes were proposed in this pull request? This PR updates the routine error classes' error message from `function` to `routine`. ### Why are the changes needed? To make the error class names and error messages more consistent. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests. ### Was this patch authored or co-authored using generative AI tooling? No Closes #46310 from allisonwang-db/spark-48064-routine-err. Authored-by: allisonwang-db <allison.w...@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls...@apache.org> --- common/utils/src/main/resources/error/error-conditions.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/utils/src/main/resources/error/error-conditions.json b/common/utils/src/main/resources/error/error-conditions.json index 5791d7415416..bae94a0ab97e 100644 --- a/common/utils/src/main/resources/error/error-conditions.json +++ b/common/utils/src/main/resources/error/error-conditions.json @@ -1041,7 +1041,7 @@ }, "DUPLICATE_ROUTINE_PARAMETER_ASSIGNMENT" : { "message" : [ - "Call to function <functionName> is invalid because it includes multiple argument assignments to the same parameter name <parameterName>." + "Call to routine <functionName> is invalid because it includes multiple argument assignments to the same parameter name <parameterName>." ], "subClass" : { "BOTH_POSITIONAL_AND_NAMED" : { @@ -3490,16 +3490,16 @@ }, "ROUTINE_ALREADY_EXISTS" : { "message" : [ - "Cannot create the function <routineName> because it already exists.", - "Choose a different name, drop or replace the existing function, or add the IF NOT EXISTS clause to tolerate a pre-existing function." + "Cannot create the routine <routineName> because it already exists.", + "Choose a different name, drop or replace the existing routine, or add the IF NOT EXISTS clause to tolerate a pre-existing routine." ], "sqlState" : "42723" }, "ROUTINE_NOT_FOUND" : { "message" : [ - "The function <routineName> cannot be found. Verify the spelling and correctness of the schema and catalog.", + "The routine <routineName> cannot be found. Verify the spelling and correctness of the schema and catalog.", "If you did not qualify the name with a schema and catalog, verify the current_schema() output, or qualify the name with the correct schema and catalog.", - "To tolerate the error on drop use DROP FUNCTION IF EXISTS." + "To tolerate the error on drop use DROP ... IF EXISTS." ], "sqlState" : "42883" }, @@ -4079,7 +4079,7 @@ }, "UNRESOLVED_ROUTINE" : { "message" : [ - "Cannot resolve function <routineName> on search path <searchPath>." + "Cannot resolve routine <routineName> on search path <searchPath>." ], "sqlState" : "42883" }, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org