Skip to content

feat(ts): Support IGNORE option when creating TimeSeries#3450

Open
lauk20 wants to merge 3 commits intoapache:unstablefrom
lauk20:ts-ignore-option
Open

feat(ts): Support IGNORE option when creating TimeSeries#3450
lauk20 wants to merge 3 commits intoapache:unstablefrom
lauk20:ts-ignore-option

Conversation

@lauk20
Copy link
Copy Markdown
Contributor

@lauk20 lauk20 commented Apr 14, 2026

Resolves issue #3215.

AI Usage: AI was used to write the initial draft and tests. Manually reviewed the code logic to verify and fix issues.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@jihuayu jihuayu left a comment

Choose a reason for hiding this comment

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

It looks like this PR will cause backward incompatibility with old data.
We should probably draft a proposal for the storage format changes.

GetSizedString(input, &source_key_slice);
source_key = source_key_slice.ToString();
GetFixed64(input, &last_timestamp);
GetFixed64(input, &ignore_max_time_diff);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This will cause compatibility issues with old data, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I believe it will cause compatibility issues with old data.

One other option we have is we can add backward compatibility like so:

ignore_max_time_diff = 0;
ignore_max_val_diff = 0.0;
if (input->size() >= sizeof(uint64_t) + sizeof(double)) {
  GetFixed64(input, &ignore_max_time_diff);
  GetDouble(input, &ignore_max_val_diff);
}

This will only Decode the values if they exist in the metadata.

How do you think we should proceed?

Comment thread tests/gocase/unit/type/timeseries/timeseries_test.go Outdated
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.

2 participants