opensearch-project / opensearch-project/sql
[Maintenance] Deprecate usage of META_FIELDS_BEFORE_7DOT8
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 176
- Forks
- 229
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 43
Description
MapperService.META_FIELDS_BEFORE_7DOT8 is marked as deprecated and will be deleted.
We need to migrate to MapperService.isMetadataField to continue distinguishing metadata fields.
MapperService.META_FIELDS_BEFORE_7DOT8 is used in legacy engine to distinguish metadata fields and document fields. Current usage refer the constants, but the constant is no longer correct since there could be more metadata fields used by other plugins.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the SQL repository for usages of MapperService.META_FIELDS_BEFORE_7DOT8, focusing on the legacy engine. Read the referenced MapperService.isMetadataField API and its call sites before replacing the deprecated constant usage. Done means metadata fields are distinguished through isMetadataField rather than the obsolete constant.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100