Skip to content

Conversation

@opensearch-trigger-bot
Copy link
Contributor

Backport d44cd39 from #1314

…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 <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
(cherry picked from commit d44cd39)
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner March 21, 2023 02:21
@codecov-commenter
Copy link

codecov-commenter commented Mar 21, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.46%. Comparing base (305ba24) to head (37e432c).
⚠️ Report is 377 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #1455      +/-   ##
============================================
+ Coverage     98.44%   98.46%   +0.01%     
- Complexity     3804     3844      +40     
============================================
  Files           343      345       +2     
  Lines          9446     9550     +104     
  Branches        601      613      +12     
============================================
+ Hits           9299     9403     +104     
  Misses          142      142              
  Partials          5        5              
Flag Coverage Δ
sql-engine 98.46% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dai-chen dai-chen added the maintenance Improves code quality, but not the product label Mar 21, 2023
@Yury-Fridlyand Yury-Fridlyand merged commit 5cfa702 into 2.x Mar 21, 2023
@github-actions github-actions bot deleted the backport/backport-1314-to-2.x branch March 21, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Improves code quality, but not the product

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants