linkedin / openhouse

Open Control Plane for Tables in Data Lakehouse
https://www.openhousedb.org/
BSD 2-Clause "Simplified" License
273 stars 43 forks source link

Add builder.default annotations to fields in CreateUpdateTableRequestBody with default values defined #97

Open ctrezzo opened 2 months ago

ctrezzo commented 2 months ago

Summary

stageCreate and tableType fields have defaults defined in CreateUpdateTableRequestBody, but they are missing the @Builder.Default annotation. This means that when doing CreateUpdateTableRequestBody.builder().build() it will not have the default values populated in the returned instance. This pull request adds the annotations to ensure the builder is consistent with the default values specified.

Changes

See summary.

Testing Done

I ran existing unit tests and all passed. There should be no behavior change here, just preventing potential issues in the future.

Additional Information

N/A