Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented May 15, 2025

Change Log

Added

Fixed

Changed

  • Rework `RenameEachEntryTransformer` to a single instance on multiple strategies

Removed

Deprecated

Security


Description

@stloyd stloyd requested a review from norberttech as a code owner May 15, 2025 05:41
@codecov
Copy link

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.28%. Comparing base (e301707) to head (e607fa8).
Report is 6 commits behind head on 1.x.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1651      +/-   ##
==========================================
+ Coverage   83.26%   83.28%   +0.01%     
==========================================
  Files         707      707              
  Lines       19139    19141       +2     
==========================================
+ Hits        15937    15941       +4     
+ Misses       3202     3200       -2     
Components Coverage Δ
etl 86.34% <100.00%> (+<0.01%) ⬆️
cli 84.59% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 90.11% <ø> (ø)
lib-filesystem 78.02% <ø> (ø)
lib-parquet 84.37% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-snappy 91.62% <ø> (+0.93%) ⬆️
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 96.38% <ø> (ø)
symfony-http-foundation 74.41% <ø> (ø)
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 89.57% <ø> (ø)
adapter-doctrine 89.73% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 80.00% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.75% <ø> (ø)
adapter-parquet 80.85% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.20% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stloyd stloyd force-pushed the adjust-rename-transformer branch from a20a09c to 1448586 Compare May 15, 2025 05:44
@github-actions
Copy link
Contributor

github-actions bot commented May 15, 2025

Flow PHP - Benchmarks

Results of the benchmarks from this PR are compared with the results from 1.x branch.

Extractors
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
| benchmark             | subject           | revs | its | mem_peak        | mode             | rstdev          |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
| CSVExtractorBench     | bench_extract_10k | 1    | 3   | 4.887mb +0.01%  | 638.396ms -1.15% | ±2.56% +578.55% |
| JsonExtractorBench    | bench_extract_10k | 1    | 3   | 5.473mb +0.01%  | 1.353s +0.93%    | ±0.98% +168.34% |
| ParquetExtractorBench | bench_extract_10k | 1    | 3   | 86.484mb +0.00% | 942.405ms +0.15% | ±1.42% +118.58% |
| TextExtractorBench    | bench_extract_10k | 1    | 3   | 4.611mb +0.01%  | 38.967ms +0.01%  | ±0.60% -55.15%  |
| XmlExtractorBench     | bench_extract_10k | 1    | 3   | 4.585mb +0.01%  | 610.458ms +0.94% | ±0.80% -72.09%  |
+-----------------------+-------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+---------------------------------+--------------------------+------+-----+------------------+------------------+----------------+
| benchmark                       | subject                  | revs | its | mem_peak         | mode             | rstdev         |
+---------------------------------+--------------------------+------+-----+------------------+------------------+----------------+
| RenameEntryTransformerBench     | bench_transform_10k_rows | 1    | 3   | 127.408mb +0.00% | 69.870ms -11.18% | ±0.97% -63.95% |
| RenameEachEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 19.155mb +0.01%  | 74.339ms -1.39%  | ±0.46% -60.17% |
+---------------------------------+--------------------------+------+-----+------------------+------------------+----------------+
Loaders
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode             | rstdev          |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 64.054mb +0.00%  | 105.287ms -1.62% | ±0.82% +448.32% |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 84.086mb +0.00%  | 99.176ms -0.62%  | ±0.65% +2.00%   |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.569mb +0.00% | 20.849s +0.76%   | ±0.59% +92.98%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 18.143mb +0.00%  | 30.955ms +4.06%  | ±0.53% -51.37%  |
+--------------------+----------------+------+-----+------------------+------------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 105.520mb +0.00% | 724.812ms -0.73% | ±0.56% -24.29%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 55.030mb +0.00%  | 367.343ms +0.53% | ±0.37% -71.88%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.808mb +0.00%  | 77.217ms -1.95%  | ±0.78% -25.79%  |
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 97.073mb +0.00%  | 3.301ms -10.35%  | ±1.42% -49.37%  |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 114.430mb +0.00% | 184.097ms +1.19% | ±0.55% -63.41%  |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 97.150mb +0.00%  | 18.410ms +0.14%  | ±0.08% -88.37%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 97.948mb +0.00%  | 1.631ms -23.70%  | ±1.46% -47.68%  |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 97.948mb +0.00%  | 1.634ms -31.56%  | ±0.44% -67.88%  |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 96.109mb +0.00%  | 4.183ms -21.16%  | ±2.33% -9.26%   |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 96.638mb +0.00%  | 16.236ms -7.61%  | ±0.99% +42.06%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 96.638mb +0.00%  | 16.397ms -1.64%  | ±0.49% -50.23%  |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 95.329mb +0.00%  | 1.794μs -10.30%  | ±2.67% +0.00%   |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 95.329mb +0.00%  | 0.300μs -25.00%  | ±0.00% -100.00% |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 104.547mb +0.00% | 14.847ms -13.06% | ±2.75% +381.97% |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 134.614mb +0.00% | 72.911ms -10.71% | ±1.05% -38.45%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 97.158mb +0.00%  | 1.536ms -30.71%  | ±3.67% +24.91%  |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 100.529mb +0.00% | 62.972ms -9.49%  | ±0.35% -18.45%  |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 98.210mb +0.00%  | 3.893ms -22.22%  | ±0.95% -45.69%  |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 95.692mb +0.00%  | 40.825ms -11.14% | ±1.80% -19.98%  |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 95.692mb +0.00%  | 40.538ms -9.33%  | ±0.68% -67.84%  |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 95.692mb +0.00%  | 40.336ms -5.16%  | ±0.71% -13.49%  |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 97.770mb +0.00%  | 8.197ms -10.78%  | ±0.72% -76.71%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 95.520mb +0.00%  | 30.231ms -2.68%  | ±2.78% +1.41%   |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 95.329mb +0.00%  | 13.566μs -34.92% | ±3.13% +44.58%  |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 95.329mb +0.00%  | 16.485μs -32.49% | ±3.63% +41.74%  |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 114.431mb +0.00% | 185.133ms -2.72% | ±0.34% -65.07%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 44.055mb +0.00%  | 463.663ms -1.37% | ±1.07% +0.61%   |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.864mb +0.00%  | 93.423ms -3.37%  | ±2.86% +492.86% |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@github-actions github-actions bot added size: S and removed size: XS labels May 15, 2025
@stloyd stloyd force-pushed the adjust-rename-transformer branch from 1448586 to e607fa8 Compare May 15, 2025 06:18
@norberttech norberttech merged commit 37143d4 into flow-php:1.x May 15, 2025
22 checks passed
@stloyd stloyd deleted the adjust-rename-transformer branch May 16, 2025 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants