Skip to content

Commit

Permalink
refactor: Skip client check with env var (#19517)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Oct 29, 2024
1 parent 5c3e83c commit 7a23e07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/polars-plan/src/client/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ use crate::plans::{DslPlan, FileScan, ScanSources};

/// Assert that the given [`DslPlan`] is eligible to be executed on Polars Cloud.
pub(super) fn assert_cloud_eligible(dsl: &DslPlan) -> PolarsResult<()> {
if std::env::var("POLARS_SKIP_CLIENT_CHECK").as_deref() == Ok("1") {
return Ok(());
}
for plan_node in dsl.into_iter() {
match plan_node {
#[cfg(feature = "python")]
Expand Down

0 comments on commit 7a23e07

Please sign in to comment.