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

Restricted catalog name to [a-zA-Z0-9_-] characters #876

Merged

Conversation

vamsi-amazon
Copy link
Member

@vamsi-amazon vamsi-amazon commented Sep 30, 2022

Signed-off-by: vamsi-amazon reddyvam@amazon.com

Description

Restricting catalog name to [a-zA-Z0-9_-] characters.

Issues Resolved

#619

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    Will raise document PR separately.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • [x ] 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.

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2022

Codecov Report

Merging #876 (281fc59) into 2.x (c04c784) will decrease coverage by 2.80%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                2.x     #876      +/-   ##
============================================
- Coverage     97.88%   95.08%   -2.81%     
- Complexity     3049     3059      +10     
============================================
  Files           290      303      +13     
  Lines          7534     8213     +679     
  Branches        480      601     +121     
============================================
+ Hits           7375     7809     +434     
- Misses          158      350     +192     
- Partials          1       54      +53     
Flag Coverage Δ
query-workbench 62.76% <ø> (?)
sql-engine 97.89% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...ain/java/org/opensearch/sql/analysis/Analyzer.java 100.00% <100.00%> (ø)
...org/opensearch/sql/analysis/model/CatalogName.java 100.00% <100.00%> (ø)
...ql/analysis/model/CatalogSchemaIdentifierName.java 100.00% <100.00%> (ø)
.../org/opensearch/sql/analysis/model/SchemaName.java 100.00% <100.00%> (ø)
...ensearch/sql/ppl/utils/PPLQueryDataAnonymizer.java 100.00% <100.00%> (ø)
workbench/public/application.tsx 0.00% <0.00%> (ø)
workbench/public/components/app.tsx 0.00% <0.00%> (ø)
...h/public/components/QueryLanguageSwitch/Switch.tsx 85.71% <0.00%> (ø)
workbench/public/components/SQLPage/SQLPage.tsx 100.00% <0.00%> (ø)
workbench/public/components/PPLPage/PPLPage.tsx 56.52% <0.00%> (ø)
... and 5 more

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

@vamsi-amazon vamsi-amazon marked this pull request as ready for review September 30, 2022 03:08
@vamsi-amazon vamsi-amazon requested a review from a team as a code owner September 30, 2022 03:08
joshuali925
joshuali925 previously approved these changes Sep 30, 2022
penghuo
penghuo previously approved these changes Sep 30, 2022
joshuali925
joshuali925 previously approved these changes Sep 30, 2022
@dai-chen
Copy link
Collaborator

IMHO, we need to define catalog clearly including:

  1. The definition of this concept
  2. Relation with connector (ex. N-to-1)
  3. Identifier match pattern
  4. Name resolution: https://docs.snowflake.com/en/sql-reference/name-resolution.html
  5. Access path: SHOW/DESC statement (information_schema underlying)

@vamsi-amazon
Copy link
Member Author

IMHO, we need to define catalog clearly including:

1. The definition of this concept

2. Relation with connector (ex. N-to-1)

3. Identifier match pattern

4. Name resolution: https://docs.snowflake.com/en/sql-reference/name-resolution.html

5. Access path: SHOW/DESC statement (`information_schema` underlying)

will create a doc for catalog under current documentation.

@vamsi-amazon vamsi-amazon force-pushed the catalog-name-restriction branch 6 times, most recently from d9f26d2 to 281fc59 Compare October 9, 2022 05:13
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.

why tableau_graph.PNG is removed?

@vamsi-amazon
Copy link
Member Author

why tableau_graph.PNG is removed?

Not sure my repos are messed up with respect to this file...got included in the latest version.
will fix thanks for pointing out.

Signed-off-by: vamsi-amazon <reddyvam@amazon.com>
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.

Thanks for the change!

@penghuo
Copy link
Collaborator

penghuo commented Oct 10, 2022

Could you also update the doc to describe identifier resolve rule?

Copy link
Collaborator

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

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

For PR description, could you follow the practice to link issue and check items applied?

@vamsi-amazon
Copy link
Member Author

For PR description, could you follow the practice to link issue and check items applied?

Sure

@vamsi-amazon vamsi-amazon linked an issue Oct 10, 2022 that may be closed by this pull request
@vamsi-amazon vamsi-amazon linked an issue Oct 10, 2022 that may be closed by this pull request
@vamsi-amazon vamsi-amazon merged commit cb1b20c into opensearch-project:2.x Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants