Review feedback: the argument-name rule was open where the other OpenSearch
functions enumerate their names, and the accepted set had to be mirrored in
Java as a result. `bucketArgName` lists the four names this lowering handles --
`field`, `interval`, `fixed_interval`, `calendar_interval` -- so anything else
is a parse error, which is the one exception RestSQLQueryAction falls back on.
The handoff is the grammar's now, not a table's.
`LEGACY_ONLY_ARGS` is gone with it, and so is the leftover-argument branch: once
the four names are taken out of the map it is always empty. What remains are the
three checks that cannot move downstream, because `spanFromSpanLengthLiteral`
dereferences the interval on its first line.
This also removes the failure mode behind the previous commit. That set had to
list every parameter the legacy engine implements, and four were missing; with
the grammar deciding, a name nobody listed falls back on its own.
Two consequences worth stating. The quoted spelling now reaches the legacy
engine rather than being lowered here -- which is where it went before this
function was defined at all, so nothing that used to work stops working. And
`missing` is dropped: `AggMaker` does not implement it either, so there is
nothing to defer to, and the `MISSING` token was unreachable behind
`MISSING_LITERAL` (ANTLR warns about this directly).
`FIXED_INTERVAL` and `CALENDAR_INTERVAL` are new tokens, added to
`keywordsCanBeId` so they can still name a column.
Verified: 82 parser unit tests, none failing; `:sql:build` green including the
coverage gate. Integration tests could not run locally -- the 3.9.0 distro no
longer bundles Jackson 2.x, so the plugin fails to install with jar hell on
`main` as well, pending opensearch-project#5703.
Signed-off-by: Jialiang Liang <ryanleeang@gmail.com>
Description
Migrate to Jackson 3.x APIs. The OpenSearch Core will stop bundling Jackson 2.x (planned for 3.9.0), and it does not prevent plugins from using Jackson 2.x if needed, however all plugins have been migrated to Jackson 3.x APIs.
Related Issues
Part of opensearch-project/OpenSearch#22197, fixes the migration gap after #5361
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.