opensearch-project / opensearch-project/sql

[Maintenance] Deprecate usage of META_FIELDS_BEFORE_7DOT8

Open
#2,702 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement legacy SQL
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.