selvavm opened a new issue #1533:
URL: https://github.com/apache/arrow-datafusion/issues/1533


   **Describe the bug**
   Getting empty array when using parquet but prints data
   
   **To Reproduce**
   
          let df = df
           .aggregate(
               vec![col("name")],
               vec![
                   min(col("salary")).alias("min"),
                   max(col("salary")).alias("max"),
               ],
           )?;
       let results: Vec<RecordBatch> = df.collect().await?;
       pretty::print_batches(&results)?;
       println!(
           "Min for Aaa is {:?}",
           results[1]
               .column(1)
               .as_any()
               .downcast_ref::<Float32Array>()
               .unwrap()
               .value(0)
       );
   
   **Expected behavior**
   Prints,
   
   | name           | min        | max       |
   | :---         |     :---:      |          ---: |
   | Aaa | 5755.896  | 6388.9575 |
   | Bbb | 6905.5454 | 7203.9756 |
   
   Min for Aaa is 5755.896
   
   **Actual behavior**
   Prints,
   | name           | min        | max       |
   | :---         |     :---:      |          ---: |
   | Aaa | 5755.896  | 6388.9575 |
   | Bbb | 6905.5454 | 7203.9756 |
   
   `thread '<unnamed>' panicked at 'assertion failed: i < self.len()', 
C:\Users\seved\.cargo\registry\src\github.com-1ecc6299db9ec823\arrow-6.5.0\src\array\array_primitive.rs:120:9`
   


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