Describe the bug
Upstream bug: apache/datafusion#21510
Add these tests to substring.sql:
query
SELECT substring(s, -2, 3) FROM test_substring
query
SELECT substring(s, -10, 3) FROM test_substring
query
SELECT substring(s, -300, 3) FROM test_substring
Example failure:
== Results ==
!== Correct Answer - 4 == == Spark Answer - 4 ==
struct<substring(s, -10, 3):string> struct<substring(s, -10, 3):string>
[] []
![] [abc]
[ell] [ell]
[null] [null]
Steps to reproduce
No response
Expected behavior
No response
Additional context
No response
Describe the bug
Upstream bug: apache/datafusion#21510
Add these tests to
substring.sql:Example failure:
Steps to reproduce
No response
Expected behavior
No response
Additional context
No response