3294
MariaDBWARNINGCriticalQuery OptimizationHIGH confidence

Optimizer hint is not applicable to this query

Production Risk

Low — warning only; query executes without the hint.

How to reproduce
trigger — this will error
trigger — this will error
SELECT /*+ NO_INDEX_MERGE(t1) */ * FROM t2;

expected output

Warning 3294: Hint NO_INDEX_MERGE is not applicable for query.

Fix

Remove inapplicable hint

Remove inapplicable hint
SELECT * FROM t2;

Why this works

Remove hints that reference tables not present in the query.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 3294 ER_NOT_HINT_APPLICABLE

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MariaDB errors