Skip to content

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.

@nitisht nitisht requested review from nitisht and theteachr December 9, 2023 10:50
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
@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.

3 participants