iceberg-python icon indicating copy to clipboard operation
iceberg-python copied to clipboard

Feat cache residual evaluator

Open ForeverAngry opened this issue 2 months ago • 0 comments

Closes #2147

  • Implement ResidualEvaluatorCache with LRU eviction and thread safety
  • Cache evaluators by partition spec, expression, case sensitivity, and schema

Rationale for this change

For queries, the same combinations of (partition spec, expression, case sensitivity, schema) are evaluated repeatedly, causing unnecessary computational overhead and increased query latency.

Are these changes tested?

Yes, using the existing test cases as they seemed sufficient for the changes.

Are there any user-facing changes?

No.

ForeverAngry avatar Nov 04 '25 02:11 ForeverAngry