icefery opened a new pull request, #3074:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3074

   Dialects: none
   
   For `VALUES (1), (2)`, `Values::span()` returns `1:8..1:16`, so slicing the 
source gives `(1), (2)`. The span should be `1:1..1:16` to include the keyword.
   
   Store the consumed `VALUES` or MySQL `VALUE` in an `AttachedToken` and union 
its span with the row spans. Keywordless row lists still use the row spans 
alone.
   
   Rust struct literals and exhaustive patterns for `Values` must account for 
the new `values_token` field. Older JSON without the field still loads with a 
row-only span. New JSON retains the keyword location.
   
   Regression tests cover standalone `VALUES`, MySQL `VALUE`, bare `FROM 
VALUES`, `MERGE` inserts, keywordless row lists, and JSON compatibility. The 
stable all-features suite passed (1,988 passed, 7 ignored), along with 
formatting, strict Clippy, rustdoc, and host `no_std` checks.
   
   Related to 
[#1548](https://github.com/apache/datafusion-sqlparser-rs/issues/1548).
   
   The implementation, tests, and draft were prepared with AI assistance.


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