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

Skip expression columns when verifying index for compression #6209

Closed
wants to merge 1 commit into from

Conversation

konskov
Copy link
Contributor

@konskov konskov commented Oct 18, 2023

Fixes #6205

When enabling compression on a hypertable, we check the unique indexes
defined on it to provide performance improvement hints in case the
unique index columns are not specified as segmentby columns as well.
However this check threw an error when expression columns were present
in the index, preventing the user from enabling compression.
This patch fixes this by simply ignoring the expression columns in the
index, since we cannot currently segment by an expression.

Fixes timescale#6205
@konskov konskov force-pushed the fix_expression_idx_handling branch from 2634bc4 to ef3ad47 Compare October 18, 2023 13:40
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #6209 (ef3ad47) into main (8f3bb0b) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6209      +/-   ##
==========================================
- Coverage   81.47%   81.44%   -0.03%     
==========================================
  Files         246      246              
  Lines       56985    56941      -44     
  Branches    12629    12611      -18     
==========================================
- Hits        46426    46378      -48     
+ Misses       8176     8155      -21     
- Partials     2383     2408      +25     
Files Coverage Δ
tsl/src/compression/create.c 93.42% <100.00%> (-0.15%) ⬇️

... and 46 files with indirect coverage changes

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

@konskov konskov closed this Oct 20, 2023
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.

[Bug]: Error enabling compression on hypertable with unique expression index
1 participant