Skip to content

[GLUTEN-10745][VL] Refactor parseScanSplitInfo for VeloxPlanConverter#10742

Open
beliefer wants to merge 1 commit intoapache:mainfrom
beliefer:improve-parseScanSplitInfo
Open

[GLUTEN-10745][VL] Refactor parseScanSplitInfo for VeloxPlanConverter#10742
beliefer wants to merge 1 commit intoapache:mainfrom
beliefer:improve-parseScanSplitInfo

Conversation

@beliefer
Copy link
Contributor

@beliefer beliefer commented Sep 17, 2025

What changes are proposed in this pull request?

This PR proposes to improve parseScanSplitInfo.
Fixes: #10745

How was this patch tested?

GA tests.

@github-actions github-actions bot added the VELOX label Sep 17, 2025
@beliefer beliefer changed the title [DRAFT] Refactor parseScanSplitInfo [GLUTEN-10745][VL] Refactor parseScanSplitInfo for VeloxPlanConverter Sep 18, 2025
@github-actions
Copy link

#10745

@beliefer
Copy link
Contributor Author

partitionColumnMap.emplace(partitionColumn.key(), partitionColumn.value());
}
splitInfo->partitionColumns.emplace_back(partitionColumnMap);
splitInfo->partitionColumns.emplace_back(std::move(partitionColumnMap));
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check if the partitionColumnMap isEmpty first

Copy link
Contributor Author

@beliefer beliefer Sep 19, 2025

Choose a reason for hiding this comment

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

std::move is safe here even if partitionColumnMap is empty.
emplace_back could accept the empty partitionColumnMap.

The overhead of std::move is very small and check if the partitionColumnMap isEmpty brings extra overhead.

I will change the code as you said if you insist. :)

Copy link
Contributor

Choose a reason for hiding this comment

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

For the interface, if the table is not a partitioned table, we should not set the field, I miss an issue before, #10622

Copy link
Contributor Author

@beliefer beliefer Sep 19, 2025

Choose a reason for hiding this comment

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

What happened if we set the field with empty partitionColumnMap?

metadataColumnMap.emplace(metadataColumn.key(), metadataColumn.value());
}
splitInfo->metadataColumns.emplace_back(metadataColumnMap);
splitInfo->metadataColumns.emplace_back(std::move(metadataColumnMap));
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale stale label Nov 4, 2025
@beliefer
Copy link
Contributor Author

beliefer commented Nov 4, 2025

GA, please hold this PR.

@github-actions github-actions bot removed the stale stale label Nov 5, 2025
@github-actions
Copy link

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale stale label Dec 21, 2025
@beliefer beliefer removed the stale stale label Dec 21, 2025
@github-actions
Copy link

github-actions bot commented Feb 5, 2026

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale stale label Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor parseScanSplitInfo for VeloxPlanConverter

2 participants