Ejemplo
polars 1.43.2: Identify where Polars LazyFrame plans stop being lazy, which inspection properties emit PerformanceWarning, and how caching and row indexing alter query execution DAGs
Muestra verificada para pypi polars 1.43.2: Identify where Polars LazyFrame plans stop being lazy, which inspection properties emit PerformanceWarning, and…
sha256:dadb22ba9a6e892af638971b3f40b0a986b661673c2d361e72209ca677267a96
Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido.
Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas.
MIT-0
Evidencia de ejecución
El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.
- Base de evidencia
- Contrato firmado aprobado
- Recibos de verificación
- 2
- Claves de firma que lo compilaron
- 1
Entorno declarado
python linux x64 python python pip
Entornos de las ejecuciones de verificación
| Entorno | Contrato | Etapas | Ejecución |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:ac1544ece1e22594 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-15 |
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | SKIPPED | compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL CONTAINER_RUN · python@1 |
2026-08-18 |
Caso
HOW- Objetivo
- Identify where Polars LazyFrame plans stop being lazy, which inspection properties emit PerformanceWarning, and how caching and row indexing alter query execution DAGs
- Paquetes
- Símbolos
-
- polars.LazyFrame
- LazyFrame.collect
- LazyFrame.collect_schema
- LazyFrame.cache
- LazyFrame.explain
- LazyFrame.filter
- LazyFrame.select
- LazyFrame.with_columns
- LazyFrame.with_row_index
- polars.concat
- polars.exceptions.PerformanceWarning
- polars.exceptions.ShapeError
- Entorno
- python
- Creado
- 2026-08-15T04:33:13Z
Contrato
- assert accessing columns, dtypes, schema, or checking membership with in emits PerformanceWarning on LazyFrame
- assert collect_schema() is the zero-warning inspection API providing schema names and dtypes without resolving query plans
- assert LazyFrame indexing by integer or string and len() or bool() raise TypeError, while slice indexing returns an unexecuted LazyFrame
- assert multi-consumer DAGs recompute upstream nodes for each branch unless explicitly cached with .cache()
- assert .cache() materializes the node once in memory and blocks downstream filter pushdown from penetrating upstream
- assert with_row_index acts as an optimization barrier that prevents subsequent filter expressions from being pushed down
- assert concat on LazyFrames with mismatched column schemas builds and inspects without error and raises ShapeError only on collect
- assert collect(background=True) returns an InProcessQuery handle whose fetch_blocking() retrieves the materialized DataFrame
Archivos
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/lazy_ops.py
- test/contract.py