Skip to content

Conversation

@Paultagoras
Copy link
Contributor

Summary

  • Added a flag to ignore partition when grouping records (only when exactlyOnce=false)

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG
  • For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

@Paultagoras Paultagoras requested a review from mzitnik March 24, 2025 15:58
@Paultagoras Paultagoras self-assigned this Mar 24, 2025
Copy link
Collaborator

@mzitnik mzitnik left a comment

Choose a reason for hiding this comment

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

We need to add some tests for that

@Paultagoras Paultagoras linked an issue Mar 24, 2025 that may be closed by this pull request
@Paultagoras Paultagoras marked this pull request as ready for review March 25, 2025 08:10
@mshustov mshustov requested a review from mzitnik March 25, 2025 08:55
clickHouseSinkConfig.getDatabase() ))
.collect(Collectors.groupingBy(Record::getTopicAndPartition));
.collect(Collectors.groupingBy(!clickHouseSinkConfig.isExactlyOnce() && clickHouseSinkConfig.isIgnorePartitionsWhenBatching()
? Record::getTopic : Record::getTopicAndPartition));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

@mzitnik mzitnik merged commit ea68506 into main Mar 25, 2025
8 checks passed
@mshustov mshustov deleted the adjust-batching branch March 25, 2025 13:49
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.

Add a feature flag to tweak batching behavior

2 participants