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

   ### What changes were proposed in this pull request?
   In the PR, I propose to change implementation of `fragment` in 
`SQLQueryContext` to get the fragment correctly. Before the changes, `fragment` 
misses the last char because `originStopIndex.get` points to the last char of 
fragments but `substring()` gets a sub-string up to `endIndex - 1`.
   
   ### Why are the changes needed?
   It fixes a bug.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes.
   
   ### How was this patch tested?
   By running new test suite:
   ```
   $ build/sbt "test:testOnly *SQLQueryContextSuite"
   ```


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