alamb commented on PR #5457:
URL: 
https://github.com/apache/arrow-datafusion/pull/5457#issuecomment-1456193592

   Specifically
   
   ```
   
   #[test]
   fn table_with_column_alias() {
       let sql = "SELECT a, b, c
                      FROM lineitem l (a, b, c)";
       let expected = "Projection: a, b, c\
           \n  Projection: l.l_item_id AS a, l.l_description AS b, l.price AS c\
           \n    SubqueryAlias: l\
           \n      TableScan: lineitem";
   
       quick_test(sql, expected);
   }
   
   ```
   
   Fails with:
   
   ```
   
   
   ---- table_with_column_alias stdout ----
   thread 'table_with_column_alias' panicked at 'called `Result::unwrap()` on 
an `Err` value: SQL(ParserError("Expected identifier, found: ,"))', 
datafusion/sql/tests/integration_test.rs:2412:34
   stack backtrace:
      0: rust_begin_unwind
                at 
/rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:575:5
      1: core::panicking::panic_fmt
                at 
/rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/panicking.rs:64:14
      2: core::result::unwrap_failed
                at 
/rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/result.rs:1791:5
      3: core::result::Result<T,E>::unwrap
                at 
/rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/result.rs:1113:23
      4: integration_test::quick_test
                at ./tests/integration_test.rs:2412:16
      5: integration_test::table_with_column_alias
                at ./tests/integration_test.rs:499:5
      6: integration_test::table_with_column_alias::{{closure}}
                at ./tests/integration_test.rs:491:30
      7: core::ops::function::FnOnce::call_once
                at 
/rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:507:5
      8: core::ops::function::FnOnce::call_once
                at 
/rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:507:5
   note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose 
backtrace.
   ```


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