Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow pulling Kafka timestamp from message, allow skipping kafka data… #442

Merged
merged 7 commits into from
Feb 20, 2025

Conversation

NeejWeej
Copy link
Collaborator

@NeejWeej NeejWeej commented Feb 7, 2025

… before start

Add extract_timestamp_from_field option to Kafka subscriptions. We already deal with Kafka timestamps possibly being unordered by allowing adjust_out_of_order_time, and this is very helpful for replaying ticks from Kafka at the correct time historically

Add include_msg_before_start_time option to Kafka subscriptions to allow filtering out messages if they are before engine start time. The default is True, in which case, 'adjust_out_of_order_time' should be set to True.

This is would change behavior, in that if 'adjust_out_of_order_time' is False, this would crash. To avoid that, for backwards compatibility, if adjust_out_of_order_time is False, and we get a message that is before engine start time, we push live

… before start

Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej force-pushed the nk/kafka_pull_ts_from_msg branch from a906515 to 11377fb Compare February 7, 2025 01:13
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej force-pushed the nk/kafka_pull_ts_from_msg branch from 6156541 to b6e0438 Compare February 15, 2025 00:06
…d not on the struct

Signed-off-by: Nijat Khanbabayev <nijat.khanbabayev@cubistsystematic.com>
@NeejWeej NeejWeej requested a review from robambalu February 20, 2025 19:46
@NeejWeej NeejWeej merged commit a436949 into main Feb 20, 2025
28 checks passed
@NeejWeej NeejWeej deleted the nk/kafka_pull_ts_from_msg branch February 20, 2025 20:52
@timkpaine timkpaine added type: enhancement Issues and PRs related to improvements to existing features adapter: kafka Issues and PRs related to the Apache Kafka adapter labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapter: kafka Issues and PRs related to the Apache Kafka adapter type: enhancement Issues and PRs related to improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants