Skip to content

Conversation

@ftljk
Copy link
Contributor

@ftljk ftljk commented Aug 14, 2025

What changes were proposed in this pull request?

This pull request introduces an radix sorting algorithm implementation tailored for integers and short strings.

Ralated Issue: #591

How was this PR tested?

  • Tests have Added for the changes
  • Production environment verified

@CLAassistant
Copy link

CLAassistant commented Aug 14, 2025

CLA assistant check
All committers have signed the CLA.

if (type.isPrimitive()) {
String sqlTypeName = convertToSqlTypeName(type);
SqlTypeName typeName = SqlTypeName.valueOf(sqlTypeName);
SqlTypeName typeName = Types.getType(type.getTypeClass()) == Types.BINARY_STRING ?
Copy link
Contributor

Choose a reason for hiding this comment

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

Check Style failed, operatorWrap: '?' should be on a new line.

}
}
}
return true;

This comment was marked as resolved.

@Override
public Iterable<Row> finish() {
List<Row> sortedRows = new ArrayList<>(allRows);
sortedRows.sort(topNRowComparator);

This comment was marked as resolved.

import org.apache.geaflow.common.binary.BinaryString;
import org.apache.geaflow.dsl.common.data.Row;

public class MultiFieldRadixSort {

This comment was marked as resolved.

@yaozhongq
Copy link
Contributor

Please add design reports and performance tests.

@ftljk
Copy link
Contributor Author

ftljk commented Sep 16, 2025

@yaozhongq Design reports and performance tests are placed in Ralated Issue: #591

@ftljk ftljk force-pushed the feature/radix-sort branch from cb9bab3 to 9e8d9fe Compare September 22, 2025 11:11
Copy link
Contributor

@yaozhongq yaozhongq left a comment

Choose a reason for hiding this comment

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

LGTM

@yaozhongq yaozhongq merged commit 49fd5c6 into apache:master Oct 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants