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

   **Describe the bug**
   ```
   thread 'main' panicked at 'byte index 2 is out of bounds of `@`', 
library/core/src/str/mod.rs:107:9
   ```
   
   **To Reproduce**
   main.rs
   ```
   use async_std;
   use datafusion;
   use datafusion::prelude::*;
   fn main() {
   
       let data = "SElECT @=   X#=?!~ 5";
       let a = async {
           let ctx = SessionContext::new();
           let df = ctx.sql(data).await;
       };
       async_std::task::block_on(a);
   }
   ```
   Cargo.toml
   ```
   [package]
   name = "crash-example"
   version = "0.1.0"
   edition = "2021"
   
   # See more keys and their definitions at 
https://doc.rust-lang.org/cargo/reference/manifest.html
   
   [dependencies]
   datafusion = "10"
   async-std = "1"
   ```
   **Expected behavior**
   return an Error instead of panic.
   


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