Skip to content

Parquet: move readTsdb to parquet storage sub-package; rename method & vars for clarity & testability #11222

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

Conversation

francoposa
Copy link
Member

We want to be able to isolate & unit test this stuff and reading a TSDB block to parquet rows should be general enough that it does not need to be specific to the compactor.

Also updated pkg/storage/parquet files to be the package name pkg/storage/parquet rather than just pkg/storage, to match other storage subpackages.

What this PR does

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@francoposa francoposa requested a review from a team as a code owner April 14, 2025 22:40
@francoposa francoposa requested review from npazosmendez and jesusvazquez and removed request for a team and npazosmendez April 14, 2025 22:43
Copy link
Member

@jesusvazquez jesusvazquez left a comment

Choose a reason for hiding this comment

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

LGTM thanks for making the clear separation Franco!

@jesusvazquez jesusvazquez merged commit 3dea98e into jvp/parquet-compactor Apr 15, 2025
24 of 26 checks passed
@jesusvazquez jesusvazquez deleted the francoposa/refactor-tsdb-block-read/jvp/parquet-compactor branch April 15, 2025 08:28
@jesusvazquez jesusvazquez changed the title move readTsdb to parquet storage sub-package; rename method & vars for clarity & testability Parquet: move readTsdb to parquet storage sub-package; rename method & vars for clarity & testability Apr 15, 2025
francoposa added a commit that referenced this pull request Apr 15, 2025
…r clarity & testability (#11222)

* move readTsdb to parquet storage sub-package; rename method & vars for clarity

* add license header
jesusvazquez pushed a commit that referenced this pull request Apr 16, 2025
…r clarity & testability (#11222)

* move readTsdb to parquet storage sub-package; rename method & vars for clarity

* add license header
jesusvazquez pushed a commit that referenced this pull request Apr 16, 2025
…r clarity & testability (#11222)

* move readTsdb to parquet storage sub-package; rename method & vars for clarity

* add license header
jesusvazquez pushed a commit that referenced this pull request Apr 16, 2025
…r clarity & testability (#11222)

* move readTsdb to parquet storage sub-package; rename method & vars for clarity

* add license header
jesusvazquez added a commit that referenced this pull request Apr 16, 2025
* Parquet converter

Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
Co-authored-by: Nico Pazos <nicolas.pazos-mendez@grafana.com>
Co-authored-by: Franco Posa <franco.posa@grafana.com>

* move readTsdb to parquet storage sub-package; rename method & vars for clarity & testability (#11222)

* move readTsdb to parquet storage sub-package; rename method & vars for clarity

* add license header

* Parquet: Initialize parquet converter module (#11226)

* Initialize parquet compactor module

Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>

* Rename to parquet converter

Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>

* Implement allowlist

* fix reader tests

* Update docs

* also skip disallowed tenants when converting blocks

* fix initialization of allowedTenants

* various name changes

---------

Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
Co-authored-by: Nicolás Pazos <npazosmendez@gmail.com>

---------

Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
Co-authored-by: Nico Pazos <nicolas.pazos-mendez@grafana.com>
Co-authored-by: Franco Posa <franco.posa@grafana.com>
Co-authored-by: Franco Posa <franco@francoposa.io>
Co-authored-by: Nicolás Pazos <npazosmendez@gmail.com>
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