jonahgao opened a new pull request, #10242:
URL: https://github.com/apache/datafusion/pull/10242
## Which issue does this PR close?
Closes #10240.
## Rationale for this change
- `substring('xxxx', 1, 2)` is recognized as `special` in the new version of
sqlparser-rs. Refer to https://github.com/sqlparser-rs/sqlparser-rs/pull/1173.
- The from .. for format is not supported because it may contain regular
expressions, such as `substring('Thomas' from ‘…$’)`; our current
implementation of substring is merely an alias for `substr`.
## What changes are included in this PR?
Re-enable the substring function.
## Are these changes tested?
Yes
## Are there any user-facing changes?
No
--
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]