Repository navigation
Closed
Labels
PPLPiped processing languageRFCRequest For Commentscalcitecalcite migration releatedmaintenanceImproves code quality, but not the product
Description
Background
Apache Calcite has released two new versions since our last dependency update. Maintaining outdated dependencies limits our access to new features and performance improvements.
Benefits
Updating to the latest Calcite version will provide:
- Native Function Support: leverage newly implemented functions from Calcite instead of creating UDFs
- Example: [BUG] Runtime exception in OpenSearchExecutionEngine should be thrown #3567 implemented
CRC32function, which was implemented in a newer version of calcite, with a UDF. - The latest release supported more SQL dialects. It's likely that more functions / paramters are supported.
- Example: [BUG] Runtime exception in OpenSearchExecutionEngine should be thrown #3567 implemented
- Resolves existing and potential future bugs
- In the latest release, it mentions additional optimizations include new rules for MIN/MAX aggregates, this may be related to existing issues like [FEATURE] PPL
min/maxenhancements for non-numeric values #4050. (not verified)
- In the latest release, it mentions additional optimizations include new rules for MIN/MAX aggregates, this may be related to existing issues like [FEATURE] PPL
- Performance Improvements
- in their release note, it mentions new rules for converting INTERSECT to semi-joins and EXISTS subqueries, MINUS to anti-joins and filters, and optimizing UNIONs with common sources.
Current State
Dependency has not not been updated for a while to keep stability.
Long-Term Goals
As this is a core dependency, I think we can establish an automated dependency management. E.g. to create a github workflow to create version bumping PRs automatically.
Proposal
- Update calcite dependency manually.
- Create a github workflow to update core dependencies automatically.
Reacted by Simeon Widdis
Metadata
Metadata
Assignees
Labels
PPLPiped processing languageRFCRequest For Commentscalcitecalcite migration releatedmaintenanceImproves code quality, but not the product
Type
Projects
- StatusShow more project fieldsDone
Activity
Swiddis commentedon Sep 9, 2025
As long as it passes CI, I don't see any issues with bumping the dep.
Automated version bumps tend to make a noisy PR list, I'd prefer to only action updating dependencies if there's actually something to gain from the new versions. But maybe it wouldn't be as bad if combined with automerging?