You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages, version, and platform.
substring_index("Abc.DE.fGh", '.', -2) returns "fGh" but it should return "DE.fGh" (ie starting from the second occurrence of the delimiter from the right). The proposed behavior matches the behavior of other databases.
…egative. (#36184)
### Rationale for this change
substring_index("Abc.DE.fGh", '.', -2) returns "fGh" but it should return "DE.fGh" (ie starting from the second occurrence of the delimiter from the right). The proposed behavior matches the behavior of other databases.
### What changes are included in this PR?
Fixed reverse index calculation and updated unit tests.
### Are these changes tested?
Yes, unit tests and integration testing.
### Are there any user-facing changes?
Function behavior change with substring_index function.
* Closes: #36182
Authored-by: Projjal Chanda <iam@pchanda.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
Describe the bug, including details regarding any error messages, version, and platform.
substring_index("Abc.DE.fGh", '.', -2) returns "fGh" but it should return "DE.fGh" (ie starting from the second occurrence of the delimiter from the right). The proposed behavior matches the behavior of other databases.
substring_index was added here: #32374
Component(s)
C++ - Gandiva
The text was updated successfully, but these errors were encountered: