Skip to content

Commit

Permalink
whoops remove dbgs
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Dec 20, 2024
1 parent 21c1502 commit f811924
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion crates/polars-core/src/chunked_array/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::sync::atomic::{AtomicU32, Ordering};

use crate::series::IsSorted;

/// An interior mutable version of [`ChunkedArrayFlags`]
/// An interior mutable version of [`StatisticsFlags`]
pub struct StatisticsFlagsIM {
inner: AtomicU32,
}
Expand Down
2 changes: 0 additions & 2 deletions crates/polars-core/src/chunked_array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,7 @@ impl<T: PolarsDataType> ChunkedArray<T> {

/// Rename this [`ChunkedArray`].
pub fn rename(&mut self, name: PlSmallStr) {
dbg!(self.get_flags());
self.field = Arc::new(Field::new(name, self.field.dtype().clone()));
dbg!(self.get_flags());
}

/// Return this [`ChunkedArray`] with a new name.
Expand Down
2 changes: 0 additions & 2 deletions crates/polars-core/src/frame/column/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,7 @@ impl Column {

#[inline]
pub fn with_name(mut self, name: PlSmallStr) -> Column {
dbg!(&self.get_flags());
self.rename(name);
dbg!(&self.get_flags());
self
}

Expand Down
6 changes: 2 additions & 4 deletions crates/polars-expr/src/expressions/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,7 @@ impl PhysicalExpr for ApplyExpr {
}

fn evaluate(&self, df: &DataFrame, state: &ExecutionState) -> PolarsResult<Column> {
dbg!(&self.as_expression());
let f = |e: &Arc<dyn PhysicalExpr>| e.evaluate(df, state);
dbg!(&df);
let mut inputs = if self.allow_threading && self.inputs.len() > 1 {
POOL.install(|| {
self.inputs
Expand All @@ -338,12 +336,12 @@ impl PhysicalExpr for ApplyExpr {
.collect::<PolarsResult<Vec<_>>>()
}?;

dbg!(if self.allow_rename {
if self.allow_rename {
self.eval_and_flatten(&mut inputs)
} else {
let in_name = inputs[0].name().clone();
Ok(self.eval_and_flatten(&mut inputs)?.with_name(in_name))
})
}
}

fn evaluate_inline_impl(&self, depth_limit: u8) -> Option<Column> {
Expand Down
4 changes: 0 additions & 4 deletions crates/polars-plan/src/dsl/function_expr/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ pub(super) fn to_physical(s: &Column) -> PolarsResult<Column> {

pub(super) fn set_sorted_flag(s: &Column, sorted: IsSorted) -> PolarsResult<Column> {
let mut s = s.clone();
dbg!(&sorted);
dbg!(&s.get_flags());
s.set_sorted_flag(sorted);
dbg!(&s.get_flags());
dbg!(&sorted);
Ok(s)
}

Expand Down

0 comments on commit f811924

Please sign in to comment.