Informix Error -26099: The optimizer cannot choose a viable plan based on the ON clause filter specified in the MERGE statement.
Cause and resolution
The optimizer cannot choose a viable plan based on the ON clause filter specified in the MERGE statement.
Hash-join is the preferred join method between source and target tables in the MERGE statement. The optimizer currently prevents nested loop joins from occurring when the target table is the inner table of a join. If a hash-join plan is also not feasible, then the optimizer throws this error.
When this error occurs, try to change the ON condition so that at least one equality predicate is specified between the source and target tables on non-complex data-types. If this is not feasible, please contact IBM Informix Technical Support.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26099 fires when the optimizer can't find a viable join plan for a MERGE statement's
ON condition — per the official guidance.
- No hash-join plan is feasible for the
ONcondition, and nested-loop joins are disallowed when the target table would be the inner table, per the official guidance — the direct, only cause; hash-join is the preferred join method between source and target.
Solutions / Resolution
- Change the
ONcondition to include at least one equality predicate between the source and target tables on non-complex data types, per the official guidance. - Contact IBM Informix Technical Support if a hash-join plan still isn't feasible, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an ON condition the optimizer can't
plan a hash-join for.
Diagnostic Checks
- Check the
ONcondition for at least one equality predicate on non-complex types between source and target, and add one if missing.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26099 in this set yet.
The optimizer couldn't find a viable MERGE join plan for the ON condition — add an
equality predicate on non-complex types between source and target.