Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: no longer support the substring function #10240

Closed
jonahgao opened this issue Apr 26, 2024 · 1 comment · Fixed by #10242
Closed

Regression: no longer support the substring function #10240

jonahgao opened this issue Apr 26, 2024 · 1 comment · Fixed by #10242
Assignees
Labels
bug Something isn't working

Comments

@jonahgao
Copy link
Member

Describe the bug

Found while working on #10013.

An error was reported stating, This feature is not implemented: Unsupported ast node in sqltorel: Substring.
It worked prior to #10137, but it stopped working after upgrading sqlparser to 0.45.0.

Related to apache/datafusion-sqlparser-rs#1173

To Reproduce

DataFusion CLI v37.1.0
> select substring('xxxx', 1, 2);
This feature is not implemented: Unsupported ast node in sqltorel: Substring { expr: Value(SingleQuotedString("xxxx")), substring_from: Some(Value(Number("1", false))), substring_for: Some(Value(Number("2", false))), special: true }

Expected behavior

No response

Additional context

No response

@jonahgao jonahgao added the bug Something isn't working label Apr 26, 2024
@jonahgao
Copy link
Member Author

take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant