Skip to content

Conversation

matthias-margush
Copy link

This adds some options related to OpenSearch routing (#300). Happy to contribute this + any review requests!

@matthias-margush matthias-margush requested a review from a team as a code owner April 24, 2025 00:11
Copy link
Contributor

@Claudenw Claudenw left a comment

Choose a reason for hiding this comment

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

Needs more complete testing and answer to question about path input

Comment on lines +194 to +196
final var fieldPath = routingFieldPath.get();
final var pathSegments = fieldPath.split("\\.");

Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if fieldPath is an empty string? I think the config definition needs a non-empty validation check.


// Test with IndexRequest
final var configForIndex = new OpensearchSinkConnectorConfig(
Map.of(OpensearchSinkConnectorConfig.CONNECTION_URL_CONFIG, "http://localhost",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you convert this to a parameter driven test and show that the extraction works with various combinations of config settings?

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.

3 participants