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

datafusion-proto deserialize with Substring(str [from int] [for int]) fails #3901

Closed
r4ntix opened this issue Oct 20, 2022 · 0 comments · Fixed by #3902
Closed

datafusion-proto deserialize with Substring(str [from int] [for int]) fails #3901

r4ntix opened this issue Oct 20, 2022 · 0 comments · Fixed by #3902
Labels
bug Something isn't working

Comments

@r4ntix
Copy link
Contributor

r4ntix commented Oct 20, 2022

Describe the bug
Serialize and Deserialize with Substring(str [from int] [for int]):

// substr(string, position, count)
let test_expr_with_count = Expr::ScalarFunction {
    fun: Substr,
    args: vec![col("col"), lit(1_i64), lit(1_i64)],
};

let ctx = SessionContext::new();
roundtrip_expr_test(test_expr_with_count, ctx);

Failed:

assertion failed: `(left == right)`
  left: `"substr(col, Int64(1), Int64(1))"`,
  right: `"substr(col, Int64(1))"`

This problem was found in arrow-ballista's benchmarks test: apache/datafusion-ballista#375

To Reproduce
👆

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

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