Skip to content

Commit

Permalink
Minor: Add debug log message for creating GroupValuesRows (apache#13506)
Browse files Browse the repository at this point in the history
* Minor: Add debug log message for creating GroupValuesRows

* fmt
  • Loading branch information
alamb authored Nov 21, 2024
1 parent a2811fc commit 9fb7aee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datafusion/physical-plan/src/aggregates/group_values/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use datafusion_common::Result;
use datafusion_execution::memory_pool::proxy::{RawTableAllocExt, VecAllocExt};
use datafusion_expr::EmitTo;
use hashbrown::raw::RawTable;
use log::debug;
use std::mem::size_of;
use std::sync::Arc;

Expand Down Expand Up @@ -80,6 +81,9 @@ pub struct GroupValuesRows {

impl GroupValuesRows {
pub fn try_new(schema: SchemaRef) -> Result<Self> {
// Print a debugging message, so it is clear when the (slower) fallback
// GroupValuesRows is used.
debug!("Creating GroupValuesRows for schema: {}", schema);
let row_converter = RowConverter::new(
schema
.fields()
Expand Down

0 comments on commit 9fb7aee

Please sign in to comment.