Skip to content

SS-321 Migrate Kafka Source/Sink TOPIC METADATA REFRESH INTERVAL#37349

Open
patrickwwbutler wants to merge 3 commits into
MaterializeInc:mainfrom
patrickwwbutler:patrick/ss-321
Open

SS-321 Migrate Kafka Source/Sink TOPIC METADATA REFRESH INTERVAL#37349
patrickwwbutler wants to merge 3 commits into
MaterializeInc:mainfrom
patrickwwbutler:patrick/ss-321

Conversation

@patrickwwbutler

@patrickwwbutler patrickwwbutler commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

https://linear.app/materializeinc/issue/SS-321/create-migration-for-kafka-sands-objects-refresh-interval

This PR (once again) makes any values <1s invalid for this option, but this could make some existing sources/sinks have invalid SQL, so the ASTs need to be migrated on upgrades.

Adds a platform checks test to check that migration on upgrade functions properly.

@patrickwwbutler patrickwwbutler requested a review from a team as a code owner June 29, 2026 19:18
@patrickwwbutler patrickwwbutler marked this pull request as draft June 29, 2026 19:36
@patrickwwbutler patrickwwbutler requested review from a team, SangJunBak and def- June 29, 2026 20:00
@patrickwwbutler patrickwwbutler marked this pull request as ready for review June 29, 2026 20:00
@patrickwwbutler patrickwwbutler requested a review from a team as a code owner June 29, 2026 20:00
if matches!(
option.name,
KafkaSourceConfigOptionName::TopicMetadataRefreshInterval
) && let Some(WithOptionValue::Value(Value::String(ref mut s))) =

@martykulma martykulma Jun 29, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think TopicMetadataRefreshInterval can also be Value::Number (TOPIC METADATA REFRESH INTERVAL = 0.5) and Value::Interval (TOPIC METADATA REFRESH INTERVAL = INTERVAL '0.5s')

Ultimately, its rust type is Duration in src/sql/src/kafka_util.rs, but I think that gets parsed out using TryFromValue in with_options.rs - which parses it as an interval.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Correct, QA LLM review flagged the same thing

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