-
Notifications
You must be signed in to change notification settings - Fork 330
feat: aes encrypt support #3211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Shekharrajak
wants to merge
21
commits into
apache:main
from
Shekharrajak:feature/aes-encrypt-support
Closed
Changes from 8 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ca01860
add crypto dependencies and implement crypto_utils with tests
Shekharrajak 7748b8a
implement ECB, CBC, and GCM cipher modes with tests
Shekharrajak 20a7bbb
implement aes_encrypt with vectorized processing and tests
Shekharrajak 92ce310
register aes_encrypt function in scalar function registry
Shekharrajak 8147ebc
add scala serde layer for aes_encrypt expression
Shekharrajak d4d53d7
add encryption benchmark for aes_encrypt performance testing
Shekharrajak 6c658ff
fix aes_encrypt serde to handle StaticInvoke properly
Shekharrajak 6a9d2f8
fix: pass return type in scalar function serialization
Shekharrajak bd897f9
test: add CometStaticInvokeSuite for aes_encrypt
Shekharrajak b0e52a8
fix: address clippy warnings in encryption code
Shekharrajak ec407ff
Delete benchmarks/CometDPPBenchmark-jdk17-results.txt
Shekharrajak 52dea17
fix: address clippy warnings in encryption code
Shekharrajak da932ca
fix: remove invalid AesEncrypt.enabled config entry
Shekharrajak f3ca5f2
fix: update auto-generated compatibility docs formatting
Shekharrajak 86a2841
Merge upstream/main into feature/aes-encrypt-support
Shekharrajak 2401225
docs: update compatibility and config tables
Shekharrajak 65c5a61
Generate and format compatibility docs after merge
Shekharrajak 538068a
Fix Miri undefined behavior in CBC/ECB encryption
Shekharrajak 3ff9e6b
Handle Array inputs in aes_encrypt scalar path
Shekharrajak 997315c
Remove debug output from scalar function fallback
Shekharrajak 071ad2a
Update encryption tests to use deterministic modes
Shekharrajak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
|
|
||
| ================================================================================ | ||
| DPP Row Reduction Analysis (selectivity=0.01) | ||
| ================================================================================ | ||
| Fact rows: 5242880 | Dim rows: 10000 (filtered to 100) | ||
| Expected with DPP: ~52428 rows | ||
|
|
||
| Implementation numOutputRows Reduction Factor | ||
| -------------------------------------------------------------------------------- | ||
| Spark (baseline) 15,781,140 1.0x | ||
| Comet (auto scan) 5,295,380 3.0x | ||
| Comet (native_datafusion + DPP) 52,500 301x | ||
| ================================================================================ | ||
|
|
||
| Key Metrics: | ||
| - I/O Reduction: 301x fewer rows scanned with DPP | ||
| - Row Reduction: 15728640 fewer rows processed | ||
| - Selectivity Impact: 1.0%% of data actually needed | ||
| ================================================================================ | ||
|
|
||
|
|
||
| ================================================================================ | ||
| DPP Row Reduction Analysis (selectivity=0.1) | ||
| ================================================================================ | ||
| Fact rows: 5242880 | Dim rows: 10000 (filtered to 1000) | ||
| Expected with DPP: ~524288 rows | ||
|
|
||
| Implementation numOutputRows Reduction Factor | ||
| -------------------------------------------------------------------------------- | ||
| Spark (baseline) 16,253,640 1.0x | ||
| Comet (auto scan) 5,767,880 2.8x | ||
| Comet (native_datafusion + DPP) 525,000 31x | ||
| ================================================================================ | ||
|
|
||
| Key Metrics: | ||
| - I/O Reduction: 31x fewer rows scanned with DPP | ||
| - Row Reduction: 15728640 fewer rows processed | ||
| - Selectivity Impact: 10.0%% of data actually needed | ||
| ================================================================================ | ||
|
|
||
| OpenJDK 64-Bit Server VM 17.0.13+11 on Mac OS X 26.1 | ||
| Apple M4 Max | ||
| DPP Join (fact=5242880, dim=10000, selectivity=0.01): Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative | ||
| ------------------------------------------------------------------------------------------------------------------------------------ | ||
| Spark (baseline) 64 73 11 81.5 12.3 1.0X | ||
| Comet (auto scan) 64 71 7 81.4 12.3 1.0X | ||
| Comet (native_datafusion + DPP) 55 59 3 95.1 10.5 1.2X | ||
|
|
||
| OpenJDK 64-Bit Server VM 17.0.13+11 on Mac OS X 26.1 | ||
| Apple M4 Max | ||
| DPP Join (fact=5242880, dim=10000, selectivity=0.1): Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative | ||
| ----------------------------------------------------------------------------------------------------------------------------------- | ||
| Spark (baseline) 65 69 4 80.7 12.4 1.0X | ||
| Comet (auto scan) 62 66 3 83.9 11.9 1.0X | ||
| Comet (native_datafusion + DPP) 56 59 3 94.4 10.6 1.2X | ||
|
|
||
| OpenJDK 64-Bit Server VM 17.0.13+11 on Mac OS X 26.1 | ||
| Apple M4 Max | ||
| DPP Join (fact=5242880, dim=10000, selectivity=0.5): Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative | ||
| ----------------------------------------------------------------------------------------------------------------------------------- | ||
| Spark (baseline) 75 78 3 69.7 14.3 1.0X | ||
| Comet (auto scan) 73 77 3 72.2 13.8 1.0X | ||
| Comet (native_datafusion + DPP) 66 71 5 79.4 12.6 1.1X | ||
|
|
||
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.