Skip to content

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

Merged
vamsimanohar merged 1 commit into
opensearch-project:2.xfrom
vamsimanohar:catalog-name-restriction
Oct 10, 2022
Merged

vamsimanohar merged 1 commit into
opensearch-project:2.xfrom
vamsimanohar:catalog-name-restriction

Conversation

@vamsimanohar

@vamsimanohar vamsimanohar commented Sep 30, 2022 •

Copy link
Copy Markdown
Member

Signed-off-by: vamsi-amazon [email protected]

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.

@vamsimanohar
vamsimanohar force-pushed the catalog-name-restriction branch from 1507459 to 272d904 Compare September 30, 2022 02:13
@codecov-commenter

codecov-commenter commented Sep 30, 2022 •

Copy link
Copy Markdown

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.

@vamsimanohar
vamsimanohar force-pushed the catalog-name-restriction branch from 272d904 to d450421 Compare September 30, 2022 02:23
@vamsimanohar
vamsimanohar marked this pull request as ready for review September 30, 2022 03:08
@vamsimanohar
vamsimanohar 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
@vamsimanohar
vamsimanohar force-pushed the catalog-name-restriction branch 3 times, most recently from 80a4fd5 to 13efaa3 Compare September 30, 2022 19:55
joshuali925
joshuali925 previously approved these changes Sep 30, 2022
@dai-chen

Copy link
Copy Markdown
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)

@vamsimanohar

Copy link
Copy Markdown
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.

@vamsimanohar
vamsimanohar force-pushed the catalog-name-restriction branch 9 times, most recently from b5b69da to 5b4f12c Compare October 5, 2022 08:22
@vamsimanohar
vamsimanohar force-pushed the catalog-name-restriction branch 6 times, most recently from d9f26d2 to 281fc59 Compare October 9, 2022 05:13

@penghuo penghuo left a comment

Copy link
Copy Markdown
Collaborator

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?

@vamsimanohar

Copy link
Copy Markdown
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.

@vamsimanohar vamsimanohar reopened this Oct 10, 2022
@vamsimanohar
vamsimanohar force-pushed the catalog-name-restriction branch from 281fc59 to 71aafdd Compare October 10, 2022 20:37
@vamsimanohar
vamsimanohar force-pushed the catalog-name-restriction branch from 71aafdd to 6580e79 Compare October 10, 2022 20:37

@penghuo penghuo left a comment

Copy link
Copy Markdown
Collaborator

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

penghuo commented Oct 10, 2022

Copy link
Copy Markdown
Collaborator

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

@dai-chen dai-chen left a comment

Copy link
Copy Markdown
Collaborator

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?

@vamsimanohar

Copy link
Copy Markdown
Member Author

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

Sure

@vamsimanohar vamsimanohar linked an issue Oct 10, 2022 that may be closed by this pull request
@vamsimanohar vamsimanohar linked an issue Oct 10, 2022 that may be closed by this pull request
@vamsimanohar
vamsimanohar 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