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

Use custom table provider to reuse statistics. #566

Merged
merged 6 commits into from
Dec 11, 2023

Conversation

trueleo
Copy link
Contributor

@trueleo trueleo commented Dec 9, 2023

Fixes #XXXX.

Description

Make Table provider implementation directly create physical plan from manifest file entries. File level statistics are aggregated into table level statistics which is available for count optimization.

Note: Aggregate Statistics will only take effect for time range which lie exactly on minute boundary. Otherwise they are treated as partial filters and plan changes, hence will not use statistics anymore.


This PR has:

  • been tested to ensure log ingestion and log query works.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

Comment on lines 153 to 155
if manifest_files.is_empty() {
return Ok(None);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We can return early, I think. If we move this to 130.

Copy link
Member

Choose a reason for hiding this comment

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

is this addressed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are calls to retain and truncate after 130. I think it is better to perform this check after all mutations to list have happened

@nitisht nitisht merged commit c6f1f74 into parseablehq:main Dec 11, 2023
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2023
@trueleo trueleo deleted the table_provider branch December 19, 2023 06:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants