Skip to content

Conversation

@suyashkumar
Copy link
Contributor

@suyashkumar suyashkumar commented Jun 4, 2025

This implements the CQL Substring operator.

One interesting note: what should Substring('', 0) produce? The current code returns an empty string instead of Null (it seems reasonable to get the identical string when doing Substring(str, 0) == str to me). The spec would probably imply Null. Could be worth clarifying/discussing, happy to change that back.

This commit introduces the implementation for the CQL Substring operator.

* Initial jules implementation
* Correctly support startIndex=stringLen case, correct tests
* Refactor for readability

 Author:     Suyash Kumar <suyashkumar2003@gmail.com>
@copybara-service copybara-service bot merged commit 59999d4 into google:main Jun 5, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant