Skip to content

String predicates and cast - #2743

Merged
norberttech merged 4 commits into
1.xfrom
string-predicates-and-cast
Nov 16, 2026
Merged

norberttech merged 4 commits into
1.xfrom
string-predicates-and-cast

Conversation

@norberttech

Copy link
Copy Markdown
Member

Change Log


Added

  • flow-php/etl - Backend::startsWith(), endsWith() and contains() string match kernels
  • flow-php/flow-php-ext - native string match kernels
  • flow-php/etl - ExternalSort::merge() merges sorted streams under a memory budget
  • flow-php/etl - Backend::releaseFreedMemory(), called after every spill of a sort
  • flow-php/arrow-ext - Flow\Arrow\allocated_bytes()

Fixed

  • flow-php/etl - a cast to string evaluated its child twice
  • flow-php/etl - a spilling group by held 2.5 times its memory limit
  • flow-php/etl - merged sort runs all got index 0

Changed

  • flow-php/etl - a cast to string returns string columns as they are and reads uuid bytes
  • flow-php/etl - a memory limit is shared by the workers of a run
  • flow-php/etl - default memory limit is 4 GiB without a PHP memory_limit
  • flow-php/flow-php-ext - RustBackend::allocatedBytes() counts the arrow extension's bytes

Removed

Deprecated

Security

- Backend::startsWith(), endsWith() and contains(), in PHP and Rust
- cast to string returns string columns as they are
- cast uuid to string reads the raw bytes
- cast to string evaluates its child once
- broadcast limit docblock names the in-memory size
- README without the libs.tech badge
- Rebuild takes a memory share, a rebuilt BucketingConfig divides its limit by it
- ExternalSort::merge() merges sorted streams under a budget, in groups when they do not fit
- an ordered Distribution carries the sort configuration
- default memory limit 4 GiB without a PHP memory_limit
- arrow-ext counts its allocated bytes, flow_php adds them to RustBackend::allocatedBytes()
- ExternalSort::merge() counts the sort keys and gives the streams half the budget
- Backend::releaseFreedMemory(), called after every spill of a sort (malloc_trim on Linux)
- a spilling group by assigns its earlier groups to buckets in chunks and spills at twice its growth
- merged sort runs are numbered in the order they are made
- group by spill tests script their memory
@norberttech norberttech added this to the 0.48.0 milestone Nov 16, 2026
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.40476% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.08%. Comparing base (25c4f87) to head (98e9784).
⚠️ Report is 1 commits behind head on 1.x.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##                1.x    #2743   +/-   ##
=========================================
  Coverage     91.07%   91.08%           
- Complexity    32215    32248   +33     
=========================================
  Files          2238     2238           
  Lines         93077    93175   +98     
=========================================
+ Hits          84768    84865   +97     
- Misses         8309     8310    +1     
Components Coverage Δ
etl 96.23% <99.40%> (+0.01%) ⬆️
cli 87.40% <ø> (ø)
lib-array-dot 96.52% <ø> (ø)
lib-azure-sdk 67.98% <ø> (ø)
lib-doctrine-dbal-bulk 94.44% <ø> (ø)
lib-filesystem 89.08% <ø> (ø)
lib-types 94.64% <ø> (ø)
lib-parquet 82.80% <ø> (ø)
lib-parquet-viewer 83.15% <ø> (ø)
lib-snappy 89.86% <ø> (-0.89%) ⬇️
lib-dremel 0.00% <ø> (ø)
lib-postgresql 90.43% <ø> (ø)
lib-telemetry 86.85% <ø> (ø)
bridge-filesystem-async-aws 96.72% <ø> (ø)
bridge-filesystem-azure 95.34% <ø> (ø)
bridge-filesystem-sftp 90.29% <ø> (ø)
bridge-monolog-http 96.84% <ø> (ø)
bridge-monolog-telemetry 92.85% <ø> (ø)
bridge-openapi-specification 91.95% <ø> (ø)
symfony-http-foundation 80.76% <ø> (ø)
bridge-symfony-console 98.01% <ø> (ø)
bridge-psr18-telemetry 100.00% <ø> (ø)
bridge-psr3-telemetry 98.95% <ø> (ø)
bridge-psr7-telemetry 100.00% <ø> (ø)
bridge-telemetry-otlp 90.11% <ø> (ø)
bridge-symfony-http-foundation-telemetry 92.85% <ø> (ø)
bridge-symfony-filesystem-bundle 93.15% <ø> (ø)
bridge-symfony-filesystem-cache 98.18% <ø> (ø)
bridge-symfony-postgresql-bundle 93.72% <ø> (ø)
bridge-symfony-postgresql-cache 94.41% <ø> (ø)
bridge-symfony-postgresql-messenger 98.80% <ø> (ø)
bridge-symfony-postgresql-session 93.65% <ø> (ø)
bridge-symfony-telemetry-bundle 90.76% <ø> (ø)
adapter-chartjs 82.46% <ø> (ø)
adapter-csv 97.68% <ø> (ø)
adapter-doctrine 95.14% <ø> (ø)
adapter-google-sheet 97.53% <ø> (ø)
adapter-http 87.40% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 47.05% <ø> (ø)
adapter-parquet 97.20% <ø> (ø)
adapter-text 97.68% <ø> (ø)
adapter-xml 98.01% <ø> (ø)
adapter-avro 6.25% <ø> (ø)
adapter-excel 96.79% <ø> (ø)
adapter-postgresql 97.35% <ø> (ø)
adapter-seal 90.00% <ø> (ø)
bridge-phpunit-postgresql 75.30% <ø> (ø)
bridge-phpunit-telemetry 87.36% <ø> (ø)
bridge-phpstan-types 0.00% <ø> (ø)
bridge-postgresql-valinor 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@norberttech
norberttech merged commit cb97b82 into 1.x Nov 16, 2026
30 of 31 checks passed
@norberttech
norberttech deleted the string-predicates-and-cast branch November 16, 2026 21:50
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant