{"record":{"id":"6710a81d9a599652","repo":"pola-rs/polars","slug":"with-not-set-in-join-builder","errorCode":null,"errorMessage":"'with' not set in join builder","messagePattern":"'with' not set in join builder","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-lazy/src/frame/mod.rs","lineNumber":2242,"sourceCode":"        self\n    }\n\n    /// Whether to preserve the row order.\n    pub fn maintain_order(mut self, maintain_order: MaintainOrderJoin) -> Self {\n        self.maintain_order = maintain_order;\n        self\n    }\n\n    /// Whether to prefer a specific build side.\n    pub fn build_side(mut self, build_side: Option<JoinBuildSide>) -> Self {\n        self.build_side = build_side;\n        self\n    }\n\n    /// Finish builder\n    pub fn finish(self) -> PolarsResult<LazyFrame> {\n        let opt_state = self.lf.opt_state;\n        let other = self.other.expect(\"'with' not set in join builder\");\n\n        let args = JoinArgs {\n            how: self.how,\n            validation: self.validation,\n            suffix: self.suffix,\n            slice: None,\n            nulls_equal: self.nulls_equal,\n            coalesce: self.coalesce,\n            maintain_order: self.maintain_order,\n            build_side: self.build_side,\n        };\n\n        let lp = self\n            .lf\n            .get_plan_builder()\n            .join(\n                other.logical_plan,\n                self.left_on,","sourceCodeStart":2224,"sourceCodeEnd":2260,"githubUrl":"https://github.com/pola-rs/polars/blob/5d8ebabf11caea54a5c29178a64a058762f49766/crates/polars-lazy/src/frame/mod.rs#L2224-L2260","documentation":"Documentation-only record: JoinBuilder::finish (crates/polars-lazy/src/frame/mod.rs) reads self.other.expect(\"'with' not set in join builder\") and panics when `other` was never provided. The guard catches builder misuse: you must call .with(<LazyFrame>) on the JoinBuilder before finish().","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"'with' not set in join builder\". Typical triggers: unsupported dtype or feature-gated code path reached at runtime, invalid user input or environment variable value, calling API methods in the wrong order or on mismatched types, or data (lengths, offsets, ranges) violating the function's preconditions.","commonSituations":"Encountered when input data or configuration does not meet the preconditions of the throwing code path (\"'with' not set in join builder\"). Common cases: missing Cargo feature flags, mismatched dtypes/lengths between arrays or series, out-of-range temporal values, malformed environment variables, or operations on unsupported/complex nested types.","solutions":["Call `.with(...)` on the join builder to provide the right-hand frame before building the join.","Use the standard `join` API with both frames specified instead of the builder if simpler."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5d8ebabf11caea54a5c29178a64a058762f49766","analyzedAt":"2026-08-23T02:54:19.138Z","contentChangedAt":"2026-08-23T02:54:19.138Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}