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
{{ message }}
Repository navigation
[FEATURE] Support for SUBSTRING_INDEX and FROM in TRIM #574
Is your feature request related to a problem?
There is a testcase failure on Tableau's TDVT tests with SPLIT("a-b-c", "-", 2) and SPLIT("a-b-c", "-", -2). OpenSearch fails when running the query
SELECT TRIM(LEADING '-' FROM TRIM(LEADING SUBSTRING_INDEX('a-b-c', '-', (2 - 1)) FROM SUBSTRING_INDEX('a-b-c', '-', 2))) AS `TEMP(Test)(1221977364)(0)`
FROM `calcs`
HAVING (COUNT(1) > 0)
What solution would you like?
I would like successfully run the query above
What alternatives have you considered?
I was unable to find alternative functions for SUBSTRING_INDEX. Recommendations are welcome.
Activity