RatulDawar commented on code in PR #23344:
URL: https://github.com/apache/datafusion/pull/23344#discussion_r3531358486
##########
datafusion/physical-plan/src/aggregates/group_values/multi_group_by/mod.rs:
##########
@@ -1076,6 +1089,35 @@ fn make_group_column(field: &Field) -> Result<Box<dyn
GroupColumn>> {
);
Ok(v.into_iter().next().unwrap())
}
+/// Returns a comparison cost tier for `data_type` (1 = cheapest, 5 = most
expensive).
+/// Used to order columns in [`GroupValuesColumn::compare_order`] so cheap
comparisons
+/// eliminate rows before expensive ones are evaluated.
+/// see <https://github.com/apache/datafusion/issues/23342>
+fn compare_tier(data_type: &DataType) -> u8 {
Review Comment:
Shouldn't this belong to a common place as this can be used across other
operators like HashJoins
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]