ganeshashree commented on code in PR #60681:
URL: https://github.com/apache/spark/pull/60681#discussion_r4625026323


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -7615,6 +7615,12 @@
     ],
     "sqlState" : "21000"
   },
+  "SCAN_BYTES_LIMIT_EXCEEDED" : {

Review Comment:
   **[P3]** Two small suggestions on the error:
   - **Name:** since sources such as JDBC report no bytes (as the doc notes), a 
row limit is a likely follow-up. Naming this `SCAN_LIMIT_EXCEEDED.BYTES` would 
let `ROWS` be added later under the same error.
   - **Message:** `<scannedBytes>` is counted when the limit is first crossed, 
and tasks keep reading until they're killed, so the query read more than this. 
Maybe "it read at least `<scannedBytes>`".



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