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

Create a sort key of a global index when it is a part of a primary key #179

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sgalushin
Copy link

In the following circumstances an attribute corresponding to a sort key of a global index is not created:

  • The sort key of a global index is a composite key;
  • this composite key is mapped to the primary key;
  • the name of the attribute associated with the primary key is not equal to the name of the primary key (in the table definition).

This situation is modeled in the new test “converts entity input to table attributes when primary key is also a part of a sort key of a global index”. Without the suggested patch normalizeData doesn’t return gs1sk attribute. To fix this not only the composite fields should be mapped to final field names, but also the fields that are referenced by these composite fields.

@sgalushin sgalushin changed the title A sort key of a global index is not created when it is a part of a primary key Create a sort key of a global index when it is a part of a primary key Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant