Exemple
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
Échantillon vérifié pour pypi polars 1.43.2: Identify where Polars LazyFrame plans stop being lazy, which inspection properties emit PerformanceWarning, and…
sha256:dadb22ba9a6e892af638971b3f40b0a986b661673c2d361e72209ca677267a96
Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré.
Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes.
MIT-0
Preuves d'exécution
L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.
- Base de preuve
- Contrat signé réussi
- Reçus de vérification
- 2
- Clés de signature qui l’ont compilé
- 1
Environnement déclaré
python linux x64 python python pip
Environnements des exécutions de vérification
| Environnement | Contrat | Étapes | Exécution |
|---|---|---|---|
| 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 |
Cas
HOW- Objectif
- Identify where Polars LazyFrame plans stop being lazy, which inspection properties emit PerformanceWarning, and how caching and row indexing alter query execution DAGs
- Symboles
-
- 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
- Environnement
- python
- Créé
- 2026-08-15T04:33:13Z
Contrat
- 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
Fichiers
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/lazy_ops.py
- test/contract.py