DataFusion weekly project plan (Andrew Lamb) - April 22, 2024
Follow on to https://github.com/apache/datafusion/issues/10002 (I didn't make one for week of April 15 2024)
It would be great for other contributors to DataFusion who plan non trivial work could try to make them visible somehow as well 🙏 (feel free to copy / modify the format)
My Highlights from Last 2 Weeks
- DataFusion is now its own Top Level Apache Project 🎉 -- details here
- Unified Scalar Function API (
BuiltInScalarFunctionwas removed): https://github.com/apache/datafusion/pull/10098 - Begun extracting
BuiltInAggregateFunctionas well: @jayzhan211 is leading the charge https://github.com/apache/datafusion/issues/8708 - 38.0.0 (not yet released) is currently 2x-7x faster planning queries details here thanks to @haohuaijin @matthewmturner @jayzhan211 @peter-toth @jackwener
- Several scalar functions like
trim,concat,upperetc got faster -- see https://github.com/apache/datafusion/issues/10171. thanks @JasonLi-cn 🙏 - The TreeNode API is now consistent for LogicalPlan and we are using it to good effect to avoid copying in
Optimizer, part of improving planning performance - Reduced required stack frame size for complex queries (https://github.com/apache/datafusion/pull/10023 and https://github.com/apache/datafusion/pull/10033)
-
37.1.0maintenance release: https://github.com/apache/datafusion/issues/9904 - Removed additional redundant sorts with monotonic functions as part of teaching DataFusion how to take best advantage of sorted data: @suremarc https://github.com/apache/datafusion/pull/9813
- Supporting
UNNESTwith multiple arrays thanks to @jonahgao https://github.com/apache/datafusion/pull/10044 - New SQL parser release https://github.com/sqlparser-rs/sqlparser-rs/issues/1162
My (personal) goals
1000 projects are built using DataFusion 📈
My (personal) plans for this week
- [ ] Support https://github.com/apache/arrow-datafusion/issues/9691
- [ ] Keep removing copies to make planning faster: https://github.com/apache/arrow-datafusion/issues/9637 --
- [ ] (Stretch goal) Document
ParquetExecmore (so it is clear / easier to understand what is already supported and what else could be useful https://github.com/apache/arrow-datafusion/issues/9929)
Project Queue (list of future projects)
- [ ] https://github.com/apache/arrow-datafusion/issues/9929 (likely not this week)
Projects I plan to help actively help review / plan
- [ ] https://github.com/apache/arrow-rs/issues/5374
- [ ] https://github.com/apache/arrow-datafusion/issues/9494
- [ ] https://github.com/apache/arrow-datafusion/issues/9493 with @wiedld
Algorithm for (my) prioritizing PR reviews
Note there are many committers who can and do review and merge PRs, so this is not the priorities of the project as a whole, just the approximate algorithm I use to prioritize my own time
Priority:
- Bug fixes (where something is just incorrect), especially regressions (where it used to work and now does not)
- Improvements directly related to features needed for InfluxDB (my employer)
- Documentation and test improvements (I view these as very strategically important)
- PRs that I think are strategically important
- Other new features / additions to functionality (note this is the lowest)
The top strategically important projects in my head are:
- Anything that makes it easier to use DataFusion as a user (docs, examples, better APIs, etc), including Getting started guide for new users (who want to use DataFusion in their project)
- Anything that improves DataFusion's quality such as bug fixes, and improved / expanded tests, etc
- Making function packages modular and easier to mix/match: https://github.com/apache/arrow-datafusion/issues/8045
Thus, if you are interested in contributing to DataFusion and are interested in a fast turn around time I would recommend looking into bug fixes / test improvements / documentation or the projects named above
If you propose adding new functionality, the review cycle will likely be longer. You can make it a shorter cycle by looking at the comments on other recent PRs and following the same model (e.g. ensure there are tests in sqllogictest for example, the CI passes, includes documentation, etc)
Background
The idea of this ticket is make my plans for DataFusion visible, largely for my own personal organizational needs, but also to:
- Communicate / coordinate in the community
- Help provide an interesting summary of what is happening in DataFusion this week
Review queue:
- [x] https://github.com/apache/datafusion/pull/10214
- [x] https://github.com/apache/datafusion/pull/10215
- [x] https://github.com/apache/datafusion/pull/10186
- [x] https://github.com/apache/datafusion/pull/10224
- [x] https://github.com/apache/datafusion/pull/10188
- [x] https://github.com/apache/datafusion/pull/10193
- [x] https://github.com/apache/datafusion/pull/10226
- [x] https://github.com/apache/arrow-rs/pull/5686
Review
- [ ] https://github.com/apache/datafusion/pull/10221
- [x] https://github.com/apache/datafusion/pull/10148
- [ ] https://github.com/apache/datafusion/pull/9593
- [ ] https://github.com/apache/datafusion/pull/10149
- [ ] https://github.com/apache/datafusion/pull/10208
- [ ] https://github.com/apache/datafusion/pull/10054
Next week: https://github.com/apache/datafusion/issues/10283