Skip to content

Conversation

@norberttech
Copy link
Member

Resolves: #1707

Change Log


Added

  • CallUserFunc Scalar Function
  • CallUserFunc Example to Website

Fixed

Changed

Removed

Deprecated

Security

@norberttech norberttech linked an issue Jun 8, 2025 that may be closed by this pull request
@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 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.790mb +0.07%  | 415.014ms -0.35% | ±0.18% -74.38%  |
| ExcelExtractorBench   | bench_extract_10k_ods  | 1    | 3   | 65.500mb +0.01% | 1.046s +0.69%    | ±0.90% +70.01%  |
| ExcelExtractorBench   | bench_extract_10k_xlsx | 1    | 3   | 67.546mb +0.00% | 1.684s +1.48%    | ±0.86% +477.41% |
| JsonExtractorBench    | bench_extract_10k      | 1    | 3   | 5.074mb +0.07%  | 1.168s -0.80%    | ±0.41% -16.30%  |
| ParquetExtractorBench | bench_extract_10k      | 1    | 3   | 86.343mb +0.01% | 902.025ms -1.12% | ±1.93% +32.61%  |
| TextExtractorBench    | bench_extract_10k      | 1    | 3   | 4.521mb +0.07%  | 38.488ms -0.24%  | ±1.17% +21.54%  |
| XmlExtractorBench     | bench_extract_10k      | 1    | 3   | 4.516mb +0.07%  | 602.470ms -0.26% | ±1.42% +125.70% |
+-----------------------+------------------------+------+-----+-----------------+------------------+-----------------+
Transformers
+---------------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| benchmark                       | subject                  | revs | its | mem_peak         | mode            | rstdev          |
+---------------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
| RenameEachEntryTransformerBench | bench_transform_10k_rows | 1    | 3   | 18.520mb +0.02%  | 73.007ms +1.46% | ±0.64% +11.16%  |
| RenameEntryTransformerBench     | bench_transform_10k_rows | 1    | 3   | 123.258mb +0.00% | 64.655ms -3.41% | ±3.25% +367.08% |
+---------------------------------+--------------------------+------+-----+------------------+-----------------+-----------------+
Loaders
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
| benchmark          | subject        | revs | its | mem_peak         | mode            | rstdev          |
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
| CSVLoaderBench     | bench_load_10k | 1    | 3   | 62.450mb +0.01%  | 83.239ms -1.55% | ±1.47% -31.74%  |
| JsonLoaderBench    | bench_load_10k | 1    | 3   | 79.751mb +0.00%  | 96.762ms -4.72% | ±1.68% +229.71% |
| ParquetLoaderBench | bench_load_10k | 1    | 3   | 166.225mb +0.00% | 20.388s -1.06%  | ±0.14% -55.26%  |
| TextLoaderBench    | bench_load_10k | 1    | 3   | 17.827mb +0.02%  | 29.287ms -5.81% | ±0.28% +373.06% |
+--------------------+----------------+------+-----+------------------+-----------------+-----------------+
Building Blocks
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| benchmark         | subject                    | revs | its | mem_peak         | mode             | rstdev          |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+
| RowsBench         | bench_chunk_10_on_10k      | 2    | 3   | 93.411mb +0.00%  | 3.438ms -2.07%   | ±3.34% +42.93%  |
| RowsBench         | bench_diff_left_1k_on_10k  | 2    | 3   | 110.780mb +0.00% | 240.152ms +1.35% | ±0.33% -64.44%  |
| RowsBench         | bench_diff_right_1k_on_10k | 2    | 3   | 93.500mb +0.00%  | 23.891ms +0.74%  | ±0.71% -53.41%  |
| RowsBench         | bench_drop_1k_on_10k       | 2    | 3   | 94.286mb +0.00%  | 1.289ms -8.64%   | ±1.79% +46.82%  |
| RowsBench         | bench_drop_right_1k_on_10k | 2    | 3   | 94.286mb +0.00%  | 1.317ms -9.49%   | ±0.83% -67.47%  |
| RowsBench         | bench_entries_on_10k       | 2    | 3   | 92.446mb +0.00%  | 3.224ms -5.44%   | ±0.18% -81.07%  |
| RowsBench         | bench_filter_on_10k        | 2    | 3   | 92.975mb +0.00%  | 17.070ms +9.72%  | ±2.12% +23.53%  |
| RowsBench         | bench_find_on_10k          | 2    | 3   | 92.975mb +0.00%  | 16.987ms +10.26% | ±1.73% +18.04%  |
| RowsBench         | bench_find_one_on_10k      | 10   | 3   | 91.664mb +0.00%  | 1.894μs 0.00%    | ±2.53% 0.00%    |
| RowsBench         | bench_first_on_10k         | 10   | 3   | 91.664mb +0.00%  | 0.400μs 0.00%    | ±0.00% 0.00%    |
| RowsBench         | bench_flat_map_on_1k       | 2    | 3   | 100.725mb +0.00% | 14.029ms -1.62%  | ±0.40% -18.08%  |
| RowsBench         | bench_map_on_10k           | 2    | 3   | 130.152mb +0.00% | 64.069ms -3.40%  | ±0.51% -62.83%  |
| RowsBench         | bench_merge_1k_on_10k      | 2    | 3   | 93.495mb +0.00%  | 1.162ms -15.81%  | ±3.07% +166.92% |
| RowsBench         | bench_partition_by_on_10k  | 2    | 3   | 96.863mb +0.00%  | 60.976ms -1.39%  | ±1.59% -35.39%  |
| RowsBench         | bench_remove_on_10k        | 2    | 3   | 94.548mb +0.00%  | 3.426ms -5.41%   | ±1.90% -39.28%  |
| RowsBench         | bench_sort_asc_on_1k       | 2    | 3   | 92.025mb +0.00%  | 39.457ms -1.85%  | ±0.44% -59.29%  |
| RowsBench         | bench_sort_by_on_1k        | 2    | 3   | 92.026mb +0.00%  | 39.590ms -0.07%  | ±0.51% -29.30%  |
| RowsBench         | bench_sort_desc_on_1k      | 2    | 3   | 92.025mb +0.00%  | 39.577ms -1.56%  | ±1.71% +312.89% |
| RowsBench         | bench_sort_entries_on_1k   | 2    | 3   | 94.107mb +0.00%  | 8.268ms -0.05%   | ±0.86% -50.08%  |
| RowsBench         | bench_sort_on_1k           | 2    | 3   | 91.857mb +0.00%  | 30.235ms +1.79%  | ±2.79% +68.03%  |
| RowsBench         | bench_take_1k_on_10k       | 10   | 3   | 91.664mb +0.00%  | 14.200μs -5.27%  | ±1.15% -68.21%  |
| RowsBench         | bench_take_right_1k_on_10k | 10   | 3   | 91.664mb +0.00%  | 15.179μs -1.94%  | ±0.82% +1.97%   |
| RowsBench         | bench_unique_on_1k         | 2    | 3   | 110.781mb +0.00% | 244.843ms +2.22% | ±0.11% -78.85%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 101.799mb +0.00% | 647.665ms +0.28% | ±0.06% -91.17%  |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 53.149mb +0.01%  | 324.299ms -1.51% | ±0.66% -7.96%   |
| EntryFactoryBench | bench_entry_factory        | 1    | 3   | 14.399mb +0.02%  | 68.724ms -0.08%  | ±0.83% -12.23%  |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 42.092mb +0.01%  | 419.216ms -2.26% | ±0.68% +4.06%   |
| TypeDetectorBench | bench_type_detector        | 1    | 3   | 11.470mb +0.03%  | 86.147ms +0.46%  | ±0.71% -64.78%  |
+-------------------+----------------------------+------+-----+------------------+------------------+-----------------+

@codecov
Copy link

codecov bot commented Jun 8, 2025

Codecov Report

Attention: Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.01%. Comparing base (5011649) to head (8dca4e3).
Report is 2 commits behind head on 1.x.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##              1.x    #1708      +/-   ##
==========================================
+ Coverage   82.00%   82.01%   +0.01%     
==========================================
  Files         708      709       +1     
  Lines       19285    19302      +17     
==========================================
+ Hits        15814    15830      +16     
- Misses       3471     3472       +1     
Components Coverage Δ
etl 88.36% <94.11%> (+0.01%) ⬆️
cli 84.42% <ø> (ø)
lib-array-dot 94.53% <ø> (ø)
lib-azure-sdk 62.56% <ø> (ø)
lib-doctrine-dbal-bulk 93.49% <ø> (ø)
lib-filesystem 78.02% <ø> (ø)
lib-types 55.76% <ø> (ø)
lib-parquet 84.37% <ø> (ø)
lib-parquet-viewer 82.02% <ø> (ø)
lib-snappy 90.69% <ø> (ø)
bridge-filesystem-async-aws 90.38% <ø> (ø)
bridge-filesystem-azure 89.92% <ø> (ø)
bridge-monolog-http 98.11% <ø> (ø)
symfony-http-foundation 74.41% <ø> (ø)
adapter-chartjs 86.45% <ø> (ø)
adapter-csv 90.37% <ø> (ø)
adapter-doctrine 89.95% <ø> (ø)
adapter-elasticsearch 97.19% <ø> (ø)
adapter-google-sheet 83.87% <ø> (ø)
adapter-http 59.15% <ø> (ø)
adapter-json 90.62% <ø> (ø)
adapter-logger 53.84% <ø> (ø)
adapter-meilisearch 97.75% <ø> (ø)
adapter-parquet 78.64% <ø> (ø)
adapter-text 84.44% <ø> (ø)
adapter-xml 83.15% <ø> (ø)
🚀 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 50244e2 into 1.x Jun 8, 2025
22 checks passed
@norberttech norberttech deleted the 1707-calluserfunc-scalar-function branch June 8, 2025 13:22
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.

CallUserFunc Scalar Function

2 participants