[Enhanced DynamoDb] List<CustomObject> is supported but not Set<CustomObject>? #5128
austinegri
started this conversation in
General
Replies: 1 comment
-
I checked this and got the same... If I translate all my Set's to List's, it's fine... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found that a List for the DynamoDb enhanced client following works, but Set does not:
But the following does not:
I get the error
"IllegalStateException Converter not found for CustomObject"
After much time looking into the technical reason why this was it appears the root cause is that DDB Set attributes must be one of the following types: N, S, B see code.
If not for the above Set paramaterized type restriction to ImmutableTableSchema.java, It appears support for conversion for Set custom objects by adding the following:
Note: did past search could not find info on set of custom objects. See similar 1, 2
My question is why can Set type not support collections of custom objects if they can be supported for Lists? Can we remove the Set type restriction and add the above changes to support Set?
Beta Was this translation helpful? Give feedback.
All reactions