Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Rework on OpenSearchDataType: parse, store and use mapping information #1455

Merged
merged 1 commit into from
Mar 21, 2023

Commits on Mar 21, 2023

  1. Rework on OpenSearchDataType: parse, store and use mapping informat…

    …ion (#1314)
    
    * Rework on `OpenSearchDataType`: parse, store and use mapping information (#180)
    
    Rework on `OpenSearchDataType`:
    * Add data types for those classes are not defined in `ExprCoreType`.
    * Address Bit-Quill#180 (comment)
    * Remove `TextKeywordValue`.
    * Add changes according to the PR review. Bit-Quill#180
    * Update `IndexMapping::parseMapping` function.
    * Add `OpenSearchDataType::resolve` function.
    * Add new constructor for `OpenSearchTextType`.
    * Make `fields` and `properties` in `OpenSearchDataType` readonly. Update tests and mapping parser.
    * Move `getFields` from `OpenSearchDataType` to `OpenSearchTextType`. Update tests.
    * Rewrite `traverseAndFlatten` according to Bit-Quill#180 (comment)
    * Minor comment fix.
    * A fix to avoid breaking changes.
    * `typeName` and `legacyTypeName` to return different type names.
    * Change `typeof` function and corresponding tests.
    * Move `convertTextToKeyword` from `ScriptUtils` to `OpenSearchTextType`. Update tests.
    * Update UT for `typeof` function.
    * Make all instances of `OpenSearchDataType` and of derived types singletones as much as possible.
    * Make string representations of all `ExprType`s uppercase.
    * Remove functions from `IndexMapping` used in tests only.
    
    Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
    Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
    (cherry picked from commit d44cd39)
    Yury-Fridlyand authored and github-actions[bot] committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    37e432c View commit details
    Browse the repository at this point in the history