zhengruifeng commented on code in PR #60612:
URL: https://github.com/apache/spark/pull/60612#discussion_r4609123728


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -3332,6 +3332,82 @@
     ],
     "sqlState" : "KD000"
   },
+  "GRAPH_AMBIGUOUS_REQUIRED_COLUMN" : {
+    "message" : [
+      "The <dataFrameKind> DataFrame contains <count> columns that match the 
required column <columnName>: <matchingColumns>. Rename or drop the duplicate 
columns."
+    ],
+    "sqlState" : "42702"
+  },
+  "GRAPH_CANNOT_INVOKE_IN_TRANSFORMATIONS" : {

Review Comment:
   Do we need dedicated `GRAPH_*` error conditions for cases already covered by 
existing ones, such as `CANNOT_INVOKE_IN_TRANSFORMATIONS`, 
`AMBIGUOUS_COLUMN_OR_FIELD`, `UNRESOLVED_COLUMN`, and `COLUMN_ALREADY_EXISTS`? 
Could we reuse those and keep graph-specific conditions for the graph 
validation and ID-type constraints?
   



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