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

Add hint when hypertable creation fails #7565

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kpan2034
Copy link
Contributor

When creating a hypertable, we create default indexes on the partition column, which requires that the column be a part of the table's primary or composite key. The error message shown to the user in this scenario did not indicate this correctly. This adds a hint to make this clearer.

Closes #2907.

@kpan2034 kpan2034 self-assigned this Dec 24, 2024
@kpan2034 kpan2034 force-pushed the improve-error-msg branch 2 times, most recently from 03a3666 to 4a380db Compare December 24, 2024 16:11
Copy link

codecov bot commented Dec 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.24%. Comparing base (59f50f2) to head (de0028f).
Report is 670 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7565      +/-   ##
==========================================
+ Coverage   80.06%   82.24%   +2.17%     
==========================================
  Files         190      231      +41     
  Lines       37181    43380    +6199     
  Branches     9450    10911    +1461     
==========================================
+ Hits        29770    35679    +5909     
- Misses       2997     3380     +383     
+ Partials     4414     4321      -93     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

When creating a hypertable, we create default indexes on the partition
column, which requires that the column be a part of the table's primary
or composite key. The error message shown to the user in this scenario
did not indicate this correctly. This adds a hint to make this clearer.

Closes timescale#2907.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error message about unique index without time column
2 participants