Skip to content

Commit

Permalink
add a way to allow
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Sep 24, 2024
1 parent 75ab37f commit d883b1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/polars-mem-engine/src/executors/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ impl StackExec {
for (i, c) in res.iter().enumerate() {
let len = c.len();
if verify_scalar && len != df_height && len == 1 && df_width > 0 {
if !self.exprs[i].is_scalar() {
#[allow(clippy::collapsible_if)]
if !self.exprs[i].is_scalar()
&& std::env::var("POLARS_ALLOW_NON_SCALAR_EXP").as_deref() != Ok("1")
{
let identifier = match self.exprs[i].as_expression() {
Some(e) => format!("expression: {}", e),
None => "this Series".to_string(),
Expand Down

0 comments on commit d883b1b

Please sign in to comment.