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

Export is_decompress_chunk_path / is_gapfill_path #6022

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

jnidzwetzki
Copy link
Contributor

@jnidzwetzki jnidzwetzki commented Aug 29, 2023

This patch adds the 'ts_' prefix to the function names of is_decompress_chunk_path and is_gapfill_path and makes them available for use by other parts of TimescaleDB.

Disable-check: force-changelog-file

@github-actions
Copy link

@nikkhils, @svenklemm: please review this pull request.

Powered by pull-review

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #6022 (2a7bf7f) into main (e343778) will decrease coverage by 0.05%.
The diff coverage is 86.95%.

@@            Coverage Diff             @@
##             main    #6022      +/-   ##
==========================================
- Coverage   81.22%   81.18%   -0.05%     
==========================================
  Files         243      243              
  Lines       55969    55923      -46     
  Branches    12397    12378      -19     
==========================================
- Hits        45460    45399      -61     
- Misses       8178     8189      +11     
- Partials     2331     2335       +4     
Files Changed Coverage Δ
src/gapfill.c 88.88% <75.00%> (-11.12%) ⬇️
src/nodes/chunk_append/chunk_append.c 89.86% <92.30%> (+0.14%) ⬆️
src/planner/add_hashagg.c 43.18% <100.00%> (-2.66%) ⬇️
tsl/src/nodes/skip_scan/planner.c 87.16% <100.00%> (-0.22%) ⬇️

... and 21 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@svenklemm
Copy link
Member

Should we instead make the version from tsl/src/nodes/gapfill/gapfill_plan.c available which doesnt rely on string comparison to determine the type?

@jnidzwetzki
Copy link
Contributor Author

@svenklemm I was also thinking about using this version. However, the version from the TSL code needs access to the gapfill_path_methods pointer, which is not available in the Apache-licensed code. So, I used the version with the string comparison.

src/gapfill.c Outdated Show resolved Hide resolved
This patch adds the 'ts_' prefix to the function names of
is_decompress_chunk_path and is_gapfill_path and makes them available
for use by other parts of TimescaleDB.
@jnidzwetzki jnidzwetzki enabled auto-merge (rebase) August 31, 2023 06:34
@jnidzwetzki jnidzwetzki merged commit 08231c8 into timescale:main Aug 31, 2023
35 checks passed
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.

None yet

3 participants