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

Rework on OpenSearchDataType: parse, store and use mapping information #1314

Commits on Feb 1, 2023

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

    …ion (#180)
    
    Rework on `OpenSearchDataType`:
    * Add data types for those classes are not defined in `ExprCoreType`.
    * Address #180 (comment)
    * Remove `TextKeywordValue`.
    * Add changes according to the PR review. #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 #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>
    Yury-Fridlyand committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    c9d106a View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. Rename getInstance() of derived OpenSearchDataTypes to of() to …

    …have the common style.
    
    Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
    Yury-Fridlyand committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    be66e97 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2023

  1. Merge remote-tracking branch 'upstream/main' into integ-spike-rework-…

    …mapping-use
    
    Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
    Yury-Fridlyand committed Feb 4, 2023
    Configuration menu
    Copy the full SHA
    c69b0eb View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. Update docs - reflect real data types reported in SQL and PPL for tex…

    …t and keyword.
    
    Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
    Yury-Fridlyand committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    a6cf875 View commit details
    Browse the repository at this point in the history
  2. Add cache for field data types.

    Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
    Yury-Fridlyand committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    d47c624 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Minor performance improvement.

    Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
    Yury-Fridlyand committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    b968514 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2023

  1. Statically init instances of OpenSearchDataType.

    Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
    Yury-Fridlyand committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    be7e9c7 View commit details
    Browse the repository at this point in the history