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

[DAT-18260] Add tblProperties to createView #184

Merged
merged 5 commits into from
Sep 25, 2024
Merged

[DAT-18260] Add tblProperties to createView #184

merged 5 commits into from
Sep 25, 2024

Conversation

filipelautert
Copy link
Contributor

No description provided.

Copy link

sonarcloud bot commented Sep 13, 2024

@filipelautert filipelautert marked this pull request as ready for review September 13, 2024 12:55
@suryaaki2 suryaaki2 requested a review from SvampX September 13, 2024 13:31
Copy link
Contributor

@KushnirykOleh KushnirykOleh left a comment

Choose a reason for hiding this comment

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

looks good


@Override
public boolean supports(CreateViewStatement statement, Database database) {
return super.supports(statement, database) && (database instanceof DatabricksDatabase);
Copy link
Contributor

@SvampX SvampX Sep 13, 2024

Choose a reason for hiding this comment

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

We might check instanceof first, because boolean statements with double signs like '&&' are "fail fast" and if DB is inapropriate there won't be a call to super.
I'm not sure if my propose makes sence in readability perspective though.

@KushnirykOleh KushnirykOleh merged commit a57cacc into main Sep 25, 2024
14 of 15 checks passed
@KushnirykOleh KushnirykOleh deleted the DAT-18260 branch September 25, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants