-
Notifications
You must be signed in to change notification settings - Fork 916
Set tableSchema to chained extensions read context #2971
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
Set tableSchema to chained extensions read context #2971
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for submitting the PR. LGTM. Could you add a changelog entry? You can do so by running the scripts/new-change script, following the instructions and then committing the new file created by the script in .changes/next-release with your changes.
0fceefa
to
d4e5d4a
Compare
Pushed up the requested change @zoewangg. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
Kudos, SonarCloud Quality Gate passed! |
@all-contributors please add @alvinsee for code |
I've put up a pull request to add @alvinsee! 🎉 |
Motivation and Context
DynamoDB Enhanced Client allows custom extensions to be installed. However, the behavior of the meta extension ChainExtension differs when providing a
DefaultDynamoDbExtensionContext
to each extension's invocation ofafterRead
. The default behavior for a single extension (by ways ofVersionRecordExtension
) passes in the table schema to the builder. However, when two or more extensions are specified,ChainExtension
omits the table schema entirely when it does the delegation. This breaks any custom extension that might require inferring the table schema in a read operation.Description
tableSchema
field when provisioning the extension context inChainExtension#afterRead
Types of changes
Checklist
mvn install
succeedsLicense