Skip to content

Conversation

@vikasrathee-cs
Copy link
Contributor

Moved the pk chunking check to SplitUtil class

SalesforceBulkUtil.awaitCompletion(bulkConnection, job, Collections.singletonList(batchInfo), true);
}

@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a UT to validate that there are no entries with the upper case values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added


// This is added for UCS use case only to identify the objects where PK chunking needs to be enabled by default.
public static boolean isPkChunkingSupported(String sobjectName) {
return sobjectName != null && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a check for empty sObjectName

Copy link
Contributor

Choose a reason for hiding this comment

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

Better break this check into multiple cases for better readability.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@vikasrathee-cs vikasrathee-cs merged commit 9fb48e9 into develop Sep 29, 2025
5 of 6 checks passed
@vikasrathee-cs vikasrathee-cs deleted the pk-chunk-check-dev branch September 29, 2025 11:38
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.

2 participants