Informix Error -26543: Query does not contain an equality join from the data mart definition and none of the columns in the equality join has a unique index
Cause and resolution
Query does not contain an equality join from the data mart definition and none of the columns in the equality join has a unique index
This query was not accelerated because it does not contain an equality join that is present in the data mart definition, and none of the columns in the equality join has a unique index. If a reference in the data mart definition is not reflected by the corresponding equality join predicates in the query, then these equality join predicates can be omitted from the query only if at least one of the columns has defined a unique index on it. Otherwise, the accelerator does not preserve the correct number of rows.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26543 fires when a query isn't accelerated because it omits an equality join from the data mart definition without a unique index protecting row counts — per the official guidance.
- The query doesn't reflect a data mart reference's equality join, and none of that join's columns has a unique index, per the official guidance — the direct, only cause; a reference can be omitted from the query only if at least one of its columns has a unique index (otherwise the accelerator can't preserve the correct row count).
Solutions / Resolution
- Add the missing equality join to the query, per the official guidance, or
- Define a unique index on one of the join's columns, per the official guidance, if the join is intentionally omitted.
Examples
N/A
No specific triggering statement is documented beyond an omitted, unprotected data-mart join.
Diagnostic Checks
- Check the data mart definition's references against the query's actual joins, and add the missing join or a unique index.
Related Errors / Related Topics
- -26544 — "Query does not contain a table from the data mart definition and there is no unique index defined on that table" The same class of unique-index-protected omission restriction, for a missing table rather than a missing join.
- -26546 — "Query contains equality joins that are not present in the data mart definition" The mirror-image restriction, on extra joins rather than missing ones.
- -26547 — "Query does not contain an equality join from the data mart definition and none of the columns in the equality join from the data mart definition have a unique index" A closely related restriction covering n:m data mart references specifically.
A data mart's equality join was omitted from the query with no protecting unique index — add the join or a unique index.