From cecdb14c323c99dab460b5024139cb43816c28a2 Mon Sep 17 00:00:00 2001 From: ritchie Date: Tue, 29 Oct 2024 14:36:59 +0100 Subject: [PATCH] refactor: Skip client check with env var --- crates/polars-plan/src/client/check.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/polars-plan/src/client/check.rs b/crates/polars-plan/src/client/check.rs index f76f508643f0..97b1ed23da2e 100644 --- a/crates/polars-plan/src/client/check.rs +++ b/crates/polars-plan/src/client/check.rs @@ -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")]