diff --git a/tests-integration/src/standalone/native_promql_tests.rs b/tests-integration/src/standalone/native_promql_tests.rs index e06dc8d5730..8fd93dbd986 100644 --- a/tests-integration/src/standalone/native_promql_tests.rs +++ b/tests-integration/src/standalone/native_promql_tests.rs @@ -74,15 +74,15 @@ fn rows(batches: &RecordBatches) -> Vec<(i64, Option, Option)> { .as_any() .downcast_ref::() .unwrap(); - let val = batch + let host = batch .column(1) .as_any() - .downcast_ref::() + .downcast_ref::() .unwrap(); - let host = batch + let val = batch .column(2) .as_any() - .downcast_ref::() + .downcast_ref::() .unwrap(); for index in 0..batch.num_rows() { rows.push(( @@ -147,14 +147,14 @@ async fn test_native_promql_standalone_executes_with_real_tql_query() { .iter() .map(|field| field.name().as_str()) .collect::>(), - vec!["ts", "val", "host"] + vec!["ts", "host", "val"] ); assert_eq!( arrow_schema.field(0).data_type(), &DataType::Timestamp(TimeUnit::Millisecond, None) ); - assert_eq!(arrow_schema.field(1).data_type(), &DataType::Float64); - assert_eq!(arrow_schema.field(2).data_type(), &DataType::Utf8); + assert_eq!(arrow_schema.field(1).data_type(), &DataType::Utf8); + assert_eq!(arrow_schema.field(2).data_type(), &DataType::Float64); assert_eq!(rows(&enabled_batches), rows(&ordinary_batches)); assert_eq!( vec![