{"record":{"id":"ff70f2ba994b961e","repo":"pola-rs/polars","slug":"unimplemented-anonymousscan","errorCode":null,"errorMessage":"unimplemented: AnonymousScan","messagePattern":"unimplemented: AnonymousScan","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-stream/src/physical_plan/lower_ir.rs","lineNumber":835,"sourceCode":"                            .expect(\"python dataset should be resolved\")\n                            .python_scan()\n                            .expect(\"should be python scan\");\n\n                        python_dataset_scan_to_reader_builder(expanded_scan)\n                    },\n\n                    #[cfg(feature = \"scan_lines\")]\n                    FileScanIR::Lines { name: _ } => {\n                        Arc::new(crate::nodes::io_sources::lines::LineReaderBuilder {\n                            prefetch_limit: RelaxedCell::new_usize(0),\n                            prefetch_semaphore: std::sync::OnceLock::new(),\n                            shared_prefetch_wait_group_slot: Default::default(),\n                            io_metrics: std::sync::OnceLock::new(),\n                        }) as _\n                    },\n\n                    FileScanIR::ExpandedPaths { name: _ } => unreachable!(),\n\n                    FileScanIR::Anonymous { .. } => {\n                        return lower_subtree_to_inmem_engine(\n                            node,\n                            output_schema,\n                            ir_arena,\n                            expr_arena,\n                            phys_sm,\n                            ctx,\n                        );\n                    },\n                };\n\n                {\n                    let cloud_options = unified_scan_args.cloud_options.clone().map(Arc::new);\n                    let file_schema = file_info.schema;\n\n                    let (projected_schema, file_schema) =\n                        multi_scan::functions::resolve_projections::resolve_projections(","sourceCodeStart":817,"sourceCodeEnd":853,"githubUrl":"https://github.com/pola-rs/polars/blob/68506541d2de983056c9eb244e1ea05fab377dfc/crates/polars-stream/src/physical_plan/lower_ir.rs#L817-L853","documentation":"Placeholder in the polars-stream IR lowering: an AnonymousScan node (e.g. a python-defined scan) was encountered for which no streaming physical node exists yet. It signals unimplemented streaming support for that scan source rather than user input error.","triggerScenarios":"Lowering an AnonymousScan (Python UDF scan) to the streaming physical plan.","commonSituations":"See trigger scenarios.","solutions":["AnonymousScan is not supported by the new streaming engine; use engine='in-memory' (pl.Config.set_engine_affinity) or materialize the scan with a concrete source like scan_parquet/scan_csv."],"exampleFix":"lf.collect(engine='in-memory')","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"68506541d2de983056c9eb244e1ea05fab377dfc","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}