This is an automated backport of #6981: Fix segfault creating CAgg on hypertable by hash.
This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.
This is an automated backport of #6981: Fix segfault creating CAgg on hypertable by hash. This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.
For more details, please see the documentation
Original description
Fix segfault creating CAgg on hypertable by hash
The new hypertable API allows create it with primary space partition and CAggs doesn't support hypertables with custom partition functions.
Fixed the segfault by properly checking if there are an open dimension available during the validation.
Disable-check: force-changelog-file