Skip to content

Wren core incorrectly convert ABS(-1) #873

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

Closed
grieve54706 opened this issue Oct 31, 2024 · 1 comment
Closed

Wren core incorrectly convert ABS(-1) #873

grieve54706 opened this issue Oct 31, 2024 · 1 comment
Assignees
Labels
bug Something isn't working core

Comments

@grieve54706
Copy link
Contributor

Describe the bug
Send statement SELECT ABS(-1) to wren core will get SELECT 1 AS "abs(Int64(-1))". It's not an executable SQL.

To Reproduce

from wren_core import SessionContext

session_context = SessionContext(manifest_str, function_path)
sql = session_context.transform_sql("SELECT ABS(-1)")

# sql = SELECT 1 AS "abs(Int64(-1))"

Wren engine Information

  • Version: 0.11.2
@grieve54706 grieve54706 added the bug Something isn't working label Oct 31, 2024
@goldmedal
Copy link
Contributor

It's also simplified by SimplifyExpressionRule. Fixed by #874

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

No branches or pull requests

2 participants