Github user jianqiao commented on a diff in the pull request: https://github.com/apache/incubator-quickstep/pull/179#discussion_r99918342 --- Diff: storage/AggregationOperationState.hpp --- @@ -156,6 +152,29 @@ class AggregationOperationState { const CatalogDatabaseLite &database); /** + * @brief Get the number of partitions to be used for initializing the + * aggregation. + * + * @return The number of partitions to be used for initializing the aggregation. + **/ + std::size_t getNumInitializationPartitions() const; + + /** + * @brief Get the number of partitions to be used for finalizing the + * aggregation. + * + * @return The number of partitions to be used for finalizing the aggregation. + **/ + std::size_t getNumFinalizationPartitions() const; --- End diff -- In the distributed scenario, you may need the table to be "really partitioned" (i.e. divided into several tables) in a different sense of what partitions refer to here. The partitions here cannot be scheduled to difference nodes since they have to update the same table. So later when we make `CollisionFreeVectorTable` support really partitioned input relations, we will can rename all the "partitions" here to some other name, say `segments`.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---