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

#406 and #1245 support sortedness checks and maintenance with parallel writes and appends #1251

Conversation

alexowens90
Copy link
Collaborator

Closes #406
Closes #1245

@@ -2433,7 +2433,10 @@ def is_symbol_pickled(self, symbol: str, as_of: Optional[VersionQueryInput] = No
return self.is_pickled_descriptor(dit.timeseries_descriptor)

def _get_time_range_from_ts(self, desc, min_ts, max_ts):
if min_ts == None or max_ts == None:
if desc.stream_descriptor.index.kind != IndexDescriptor.Type.TIMESTAMP or \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wasn't this in the other PR? Does this one need a rebase?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, rebased now

def test_parallel_sortedness_checks(lmdb_version_store, append):
lib = lmdb_version_store
sym = "test_parallel_sortedness_checks"
if append:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lots of the tests from here down are substantially different depending on append. I think it would be clearer to explode out to separate tests rather than parameterizing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I disagree on this. The core features under test are identical for write and append. Having them parametrized makes it clear that they should behave the same way.

@alexowens90 alexowens90 force-pushed the bugfix/406/support-sortedness-checks-with-parallel-writes-and-appends branch 2 times, most recently from 149a613 to e9d868b Compare January 18, 2024 14:41
…nds, and maintain sortedness information in compact_incomplete
@alexowens90 alexowens90 force-pushed the bugfix/406/support-sortedness-checks-with-parallel-writes-and-appends branch from e9d868b to 6ec7ae7 Compare January 18, 2024 17:14
@alexowens90 alexowens90 merged commit 94670ee into master Jan 19, 2024
130 checks passed
@alexowens90 alexowens90 deleted the bugfix/406/support-sortedness-checks-with-parallel-writes-and-appends branch January 19, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants