You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "MaxGekk (via GitHub)" <gi...@apache.org> on 2025/01/22 09:41:25 UTC

Re: [PR] [SPARK-50947][PYTHON][SQL][CONNECT] Assign appropriate error class and SparkException for duplicated artifacts [spark]

MaxGekk commented on code in PR #49598:
URL: https://github.com/apache/spark/pull/49598#discussion_r1925003554


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -1229,6 +1229,12 @@
     ],
     "sqlState" : "42710"
   },
+  "DUPLICATED_ARTIFACT" : {

Review Comment:
   How about `ARTIFACT_ALREADY_EXISTS`



##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -1229,6 +1229,12 @@
     ],
     "sqlState" : "42710"
   },
+  "DUPLICATED_ARTIFACT" : {
+    "message" : [
+      "Duplicate Artifact: <normalizedRemoteRelativePath>. Artifacts cannot be overwritten."

Review Comment:
   ```suggestion
         "The artifact <normalizedRemoteRelativePath> already exists. Please choose a different name for the new artifact because it cannot be overwritten."
   ```



-- 
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-unsubscribe@spark.apache.org

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


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