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

tgz: Implemented ColumnSnapshotGenerator to handle numeric boolean default values in snapshots #191

Conversation

tgehrsitz-ite
Copy link
Contributor

PROPOSAL: when generating Snapshot, use true/false for default boolean values instead of numeric ones.

@filipelautert filipelautert self-assigned this Mar 26, 2024
@filipelautert filipelautert force-pushed the tgz_SAP_HANA_Cloud_returns_numeric_values_as_boolean_defaults branch from a534232 to d516533 Compare March 26, 2024 19:14
@filipelautert filipelautert force-pushed the tgz_SAP_HANA_Cloud_returns_numeric_values_as_boolean_defaults branch from d516533 to b8acbb0 Compare April 9, 2024 11:28
@filipelautert filipelautert added the TypeEnhancement TypeEnhancement label Apr 9, 2024
@filipelautert filipelautert force-pushed the tgz_SAP_HANA_Cloud_returns_numeric_values_as_boolean_defaults branch from b8acbb0 to f119596 Compare April 9, 2024 12:11
Copy link
Contributor

@filipelautert filipelautert left a comment

Choose a reason for hiding this comment

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

@tgehrsitz-ite thanks for the PR ! I requested a small change to make sure it works as expected.


@Override
public int getPriority(Class<? extends DatabaseObject> objectType, Database database) {
return PRIORITY_DATABASE;
Copy link
Contributor

Choose a reason for hiding this comment

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

In order to make sure that this extension priority doesn't break other databases the getPriority needs to check if the current database is hanadb, similar to this one in bigquey: https://github.com/liquibase/liquibase-bigquery/blob/dcc3eb960fd437115d1f22bc0f95f15dba943c6d/src/main/java/liquibase/ext/bigquery/snapshot/jvm/BigQueryViewSnapshotGenerator.java#L26

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @filipelautert, apologies for the delayed reply this time from my side. Good point, thanks for reviewing! I just pushed the changes to the PR/branch.

Copy link

sonarcloud bot commented May 16, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@filipelautert filipelautert merged commit 73eb522 into liquibase:main May 16, 2024
12 of 13 checks passed
@tgehrsitz-ite tgehrsitz-ite deleted the tgz_SAP_HANA_Cloud_returns_numeric_values_as_boolean_defaults branch May 16, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TypeEnhancement TypeEnhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants