Skip to content
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

[AMORO-2438] Mixed Format KeyedTable support bin-packing splitting optimizing tasks #2446

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

wangtaohz
Copy link
Contributor

@wangtaohz wangtaohz commented Dec 18, 2023

Why are the changes needed?

Close #2438 .

Brief change log

  • fix cost calculation when optimizing planning
  • split tasks by bin-packing in a tree node

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@github-actions github-actions bot added the module:ams-dashboard Ams dashboard module label Dec 18, 2023
@@ -146,14 +147,14 @@ public List<TaskDescriptor> planTasks() {
double avgThreadCost = actualInputSize / availableCore;
List<TaskDescriptor> tasks = Lists.newArrayList();
for (AbstractPartitionPlan partitionPlan : actualPartitionPlans) {
tasks.addAll(partitionPlan.splitTasks((int) (actualInputSize / avgThreadCost)));
tasks.addAll(partitionPlan.splitTasks((int) (partitionPlan.getCost() / avgThreadCost)));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix calculating the target task count for each partition.

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (a655ddc) 32.57% compared to head (8c18ce4) 32.59%.

Files Patch % Lines
.../server/optimizing/plan/AbstractPartitionPlan.java 91.66% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2446      +/-   ##
============================================
+ Coverage     32.57%   32.59%   +0.01%     
+ Complexity     4469     4466       -3     
============================================
  Files           599      599              
  Lines         50306    50330      +24     
  Branches       6681     6687       +6     
============================================
+ Hits          16388    16403      +15     
- Misses        32614    32622       +8     
- Partials       1304     1305       +1     
Flag Coverage Δ
core 30.75% <95.00%> (+0.01%) ⬆️
trino 50.36% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot removed the module:ams-dashboard Ams dashboard module label Dec 27, 2023
@wangtaohz wangtaohz changed the title [WIP][AMORO-2438] Mixed Format KeyedTable support bin-packing splitting optimizing tasks [AMORO-2438] Mixed Format KeyedTable support bin-packing splitting optimizing tasks Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant