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

Add low-level create table and table exists API #834

Merged

Conversation

dai-chen
Copy link
Collaborator

@dai-chen dai-chen commented Sep 15, 2022

Description

Add create table and is table exists API on low level Table and OpenSearchClient interface. This is the prerequisite for adding system table and create materialized view functionality later. Because of only low-level code changes, IT will be added later. Publishing this PR earlier to avoid very large PR at last.

Issues Resolved

#833

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Chen Dai <daichen@amazon.com>
Signed-off-by: Chen Dai <daichen@amazon.com>
Signed-off-by: Chen Dai <daichen@amazon.com>
Signed-off-by: Chen Dai <daichen@amazon.com>
Signed-off-by: Chen Dai <daichen@amazon.com>
Signed-off-by: Chen Dai <daichen@amazon.com>
Signed-off-by: Chen Dai <daichen@amazon.com>
@dai-chen dai-chen self-assigned this Sep 15, 2022
@codecov-commenter
Copy link

codecov-commenter commented Sep 15, 2022

Codecov Report

Merging #834 (97aa359) into feature/maximus-m1 (1bd0f35) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@                   Coverage Diff                    @@
##             feature/maximus-m1     #834      +/-   ##
========================================================
+ Coverage                 94.82%   94.85%   +0.02%     
- Complexity                 2915     2927      +12     
========================================================
  Files                       291      291              
  Lines                      7794     7830      +36     
  Branches                    567      568       +1     
========================================================
+ Hits                       7391     7427      +36     
  Misses                      349      349              
  Partials                     54       54              
Flag Coverage Δ
query-workbench 62.76% <ø> (ø)
sql-engine 97.79% <100.00%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
...rc/main/java/org/opensearch/sql/storage/Table.java 100.00% <ø> (ø)
...ch/sql/opensearch/client/OpenSearchNodeClient.java 100.00% <100.00%> (ø)
...ch/sql/opensearch/client/OpenSearchRestClient.java 100.00% <100.00%> (ø)
...h/sql/opensearch/data/type/OpenSearchDataType.java 100.00% <100.00%> (ø)
...request/system/OpenSearchDescribeIndexRequest.java 100.00% <100.00%> (ø)
...search/sql/opensearch/storage/OpenSearchIndex.java 100.00% <100.00%> (ø)
...ensearch/storage/system/OpenSearchSystemIndex.java 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Chen Dai <daichen@amazon.com>
@dai-chen dai-chen marked this pull request as ready for review September 15, 2022 19:56
@dai-chen dai-chen requested a review from a team as a code owner September 15, 2022 19:56
Signed-off-by: Chen Dai <daichen@amazon.com>
@dai-chen dai-chen changed the title Add low-level create table and is table exist API Add low-level create table and table exists API Sep 16, 2022
Copy link
Collaborator

@penghuo penghuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dai-chen dai-chen merged commit 213b6ae into opensearch-project:feature/maximus-m1 Sep 21, 2022
@dai-chen dai-chen added the enhancement New feature or request label Sep 21, 2022
@dai-chen dai-chen deleted the maximus/add-system-table branch September 21, 2022 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants