### Elasticsearch Version

8.11.0

### Installed Plugins

_No response_

### Java Version

_bundled_

### OS Version

MacOS

### Problem Description

I would expect a clear message for the following ES|QL query:

```
from index | where 1 year
```

But what I get is:

```
[esql] > Unexpected error from Elasticsearch: illegal_argument_exception - Unrecognized class type class java.time.Period
```

### Steps to Reproduce

See above.

### Logs (if relevant)

_No response_
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/Verifier.java
b.set(STATS.ordinal());
            } else if (p instanceof Filter) {
                b.set(WHERE.ordinal());
            }
        });
        for (int i = b.nextSetBit(0); i >= 0; i = b.nextSetBit(i + 1)) {
            metrics.inc(FeatureMetric.values()[i]);
        }
    }
    private static Collection<Failure> validateRow(Row row) {
        List<Failure> failures = new ArrayList<>(row.fields().size());
        row.fields().forEach(a -> {
            if (EsqlDataTypes.isRepresentable(a.dataType()) == false) {
                failures.add(fail(a, "cannot use [{}] directly in a row assignment", a.child().sourceText()));
            }
        });
        return failures;
    }
    private static Collection<Failure> validateEval(Eval eval) {
        List<Failure> failures = new ArrayList<>(eval.fields().size());
        eval.fields().forEach(field -> {
            DataType dataType = field.dataType();
            if (EsqlDataTypes.isRepresentable(dataType) == false) {
                failures.add(
                    fail(field, "EVAL does not support type [{}] in expression [{}]", dataType.typeName(), field.child().sourceText())
                );
            }
        });
        return failures;
    }