You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/20 03:10:35 UTC

[GitHub] [arrow-datafusion] r4ntix opened a new issue, #3901: datafusion-proto deserialize with Substring(str [from int] [for int]) fails

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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb closed issue #3901: datafusion-proto deserialize with Substring(str [from int] [for int]) fails

Posted by GitBox <gi...@apache.org>.
alamb closed issue #3901: datafusion-proto deserialize with Substring(str [from int] [for int]) fails
URL: https://github.com/apache/arrow-datafusion/issues/3901


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org