1747
MariaDBERRORNotablePartitioningHIGH confidence
PARTITION clause used on non-partitioned table
Production Risk
Low — query rejected.
What this means
A PARTITION clause was specified in a query targeting a table that is not partitioned.
Why it happens
- 1Using PARTITION (p0) syntax on a regular non-partitioned table.
How to reproduce
trigger — this will error
trigger — this will error
SELECT * FROM non_part_table PARTITION (p0);
expected output
ERROR 1747 (HY000): The PARTITION clause may not be used with a non-partitioned table.
Fix
Remove the PARTITION clause or partition the table first
Remove the PARTITION clause or partition the table first
SELECT * FROM non_part_table;
Why this works
Partition pruning syntax only applies to partitioned tables.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 1747 ER_PARTITION_CLAUSE_ON_NONPARTITIONED
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev