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

   **Describe the bug**
   A clear and concise description of what the bug is.
   
   **To Reproduce**
   Put in `core/src/dataframe.rs`
   
   ```rust
       #[tokio::test]
       async fn select_with_periods() -> Result<()> {
           // define data with a column name that has a "." in it:
           let array: Int32Array = [1, 10].into_iter().collect();
           let batch =
               RecordBatch::try_from_iter(vec![("f.c1", Arc::new(array) as 
_)]).unwrap();
   
           let ctx = SessionContext::new();
           ctx.register_batch("t", batch).unwrap();
   
           let df = ctx
               .table("t")
               .unwrap()
               .select_columns(&["f.c1"])
               .unwrap();
   
           let df_results = df.collect().await.unwrap();
   
           assert_batches_sorted_eq!(
               vec![
                   "+------+",
                   "| f.c1 |",
                   "+------+",
                   "| 1    |",
                   "| 10   |",
                   "+------+",
               ],
               &df_results
           );
   
           Ok(())
   }
   ```
   
   Fails like:
   ```
   thread 'dataframe::tests::select_with_periods' panicked at 'called 
`Result::unwrap()` on an `Err` value: SchemaError(FieldNotFound { qualifier: 
Some("f"), name: "c1", valid_fields: Some(["t.f.c1"]) })', 
datafusion/core/src/dataframe.rs:1437:14
   ```
   
   **Expected behavior**
   The test should pass
   
   
   **Additional context**
   Found while working on https://github.com/apache/arrow-datafusion/pull/3700
   
   cc @hengfeiyang


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