nchammas opened a new pull request, #44863:
URL: https://github.com/apache/spark/pull/44863

   ### What changes were proposed in this pull request?
   
   Move the error categories and states out of the Markdown table in the error 
README and into standalone JSON files.
   
   I am using the terms "error category" and "error state" as defined in 
SPARK-46810.
   
   TODO:
   - [ ] Add/update some tests to check the schema and contents of these new 
files.
   
   ### Why are the changes needed?
   
   The data captured in Markdown is not automation-friendly. In future work, I 
intend to automate the generation of 
[sql-error-conditions-sqlstates.md][states] using these new JSON files.
   
   Additionally, there are many instances of duplicate keys and inconsistent 
descriptions for the error categories, which this change resolves by moving the 
data into JSON. This also enables IDE support for basic validation.
   
   [states]: 
https://github.com/apache/spark/blob/6ea2094da252ce96d875696dbd68c4d1bc673dc4/docs/sql-error-conditions-sqlstates.md
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   New/updated unit tests.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


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