r4ntix opened a new issue, #3901:
URL: https://github.com/apache/arrow-datafusion/issues/3901

   **Describe the bug**
   Serialize and Deserialize with `Substring(str [from int] [for int])`:
   ```rust
   // 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: 
https://github.com/apache/arrow-ballista/issues/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.
   


-- 
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]

Reply via email to