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

Merged
merged 1 commit into from
Jan 8, 2025

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.29%. Comparing base (59f50f2) to head (d186781).
Report is 686 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7565      +/-   ##
==========================================
+ Coverage   80.06%   82.29%   +2.22%     
==========================================
  Files         190      238      +48     
  Lines       37181    43718    +6537     
  Branches     9450    10970    +1520     
==========================================
+ Hits        29770    35978    +6208     
- Misses       2997     3402     +405     
+ Partials     4414     4338      -76     

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

@kpan2034 kpan2034 force-pushed the improve-error-msg branch 2 times, most recently from 65b8306 to 9e1c200 Compare January 8, 2025 16:26
@kpan2034 kpan2034 enabled auto-merge (squash) January 8, 2025 16:27
@kpan2034 kpan2034 disabled auto-merge January 8, 2025 16:27
@kpan2034 kpan2034 enabled auto-merge (squash) January 8, 2025 16:27
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.
@kpan2034 kpan2034 merged commit cc6dc85 into timescale:main Jan 8, 2025
47 checks passed
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
4 participants