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

Lake formation support updates #1871

Merged
merged 7 commits into from
Jun 7, 2024

Conversation

amsiglan
Copy link
Contributor

@amsiglan amsiglan commented Jun 4, 2024

Description

This PR

  • Updates the query used for fetching table for security lake since EXTENDED keyword is not supported
  • Add a new connection Security Lake type for integrations that have at least one workflow for security lake data sources.
  • Filters integrations based on the data source

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.

@@ -127,7 +132,9 @@ export const NoResults = ({ tabId }: any) => {
<p>Show a list of tables within a database</p>
<EuiSpacer size="s" />
<CreatedCodeBlock
code={`SHOW TABLE EXTENDED IN ${datasourceName}.<database> LIKE '*'`}
code={`SHOW ${
dataSourceConnectionType === 'SECURITYLAKE' ? 'TABLES' : 'TABLE EXTENDED'
Copy link
Member

Choose a reason for hiding this comment

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

if this is just show tables query, do we want to filter them based on hive or non-hive provider?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Security lake only supports Iceberg tables so we don't need any filtering

* SPDX-License-Identifier: Apache-2.0
*/

export type IntegrationConnectionType = 's3' | 'index' | 'securityLake';
Copy link
Member

Choose a reason for hiding this comment

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

Nit. (not blocking) Some places I see securityLake in lower case and some place in upper case. Could be better to keep it consistent.

@ps48 ps48 merged commit 19d68b2 into opensearch-project:main Jun 7, 2024
12 of 18 checks passed
@ps48 ps48 added the enhancement New feature or request label Jun 7, 2024
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.

4 participants