[Hackathon]: feat(workflow-operator): add compiled C++ and Rust UDFs?#5078
Closed
carloea2 wants to merge 3 commits into
Closed
[Hackathon]: feat(workflow-operator): add compiled C++ and Rust UDFs?#5078carloea2 wants to merge 3 commits into
carloea2 wants to merge 3 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5078 +/- ##
============================================
- Coverage 43.07% 42.80% -0.27%
+ Complexity 2211 2204 -7
============================================
Files 1045 1045
Lines 40220 40085 -135
Branches 4244 4235 -9
============================================
- Hits 17323 17159 -164
- Misses 21827 21864 +37
+ Partials 1070 1062 -8
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented prototype Compiled C++ and Rust UDF Operators for Texera.
The operators let users write native C++ or Rust directly inside the workflow UI, configure input/output columns, compile the code, and run it as workflow operators. The MVP supports typed tuple/batch/table-style APIs, compiler errors, retained input columns, configurable compiler flags, timeout, and batching.
To demonstrate why this is useful, I benchmarked the same deterministic CPU-heavy matrix multiplication workload across Rust, C++, Java UDF, and Python UDF. Each runtime receives its own independent source with the same seed/workload.
Benchmark Results
This shows the motivation clearly: Python is great for usability, but compiled native UDFs can provide major speedups for CPU-heavy workloads while staying inside Texera’s visual workflow model.
C++ UDF
Rust UDF
Java UDF
Python UDF
Texera.-.Google.Chrome.2026-05-14.23-49-35.github-under-10mb-final-no-audio.mp4