CodeSampleX

サンプル

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

検証済みサンプル — pypi polars 1.43.2: Identify where Polars LazyFrame plans stop being lazy, which inspection properties emit PerformanceWarning, and how caching…

sha256:dadb22ba9a6e892af638971b3f40b0a986b661673c2d361e72209ca677267a96

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
2
ビルドした署名鍵
1
宣言された環境 python linux x64 python python pip

検証実行環境

環境 コントラクト ステージ 実行日
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

ケース

HOW
ゴール
Identify where Polars LazyFrame plans stop being lazy, which inspection properties emit PerformanceWarning, and how caching and row indexing alter query execution DAGs
パッケージ
シンボル
  • 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
環境
python
作成日
2026-08-15T04:33:13Z

コントラクト

  1. assert accessing columns, dtypes, schema, or checking membership with in emits PerformanceWarning on LazyFrame
  2. assert collect_schema() is the zero-warning inspection API providing schema names and dtypes without resolving query plans
  3. assert LazyFrame indexing by integer or string and len() or bool() raise TypeError, while slice indexing returns an unexecuted LazyFrame
  4. assert multi-consumer DAGs recompute upstream nodes for each branch unless explicitly cached with .cache()
  5. assert .cache() materializes the node once in memory and blocks downstream filter pushdown from penetrating upstream
  6. assert with_row_index acts as an optimization barrier that prevents subsequent filter expressions from being pushed down
  7. assert concat on LazyFrames with mismatched column schemas builds and inspects without error and raises ShapeError only on collect
  8. assert collect(background=True) returns an InProcessQuery handle whose fetch_blocking() retrieves the materialized DataFrame

ファイル

  • NOTES.md
  • csx.json
  • requirements.txt
  • src/__init__.py
  • src/lazy_ops.py
  • test/contract.py

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

anonymous