-
Notifications
You must be signed in to change notification settings - Fork 2k
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
EventHubs EventData.getProperties() documentation #31095
Comments
@conniey @Azure/azsdk-sb-java could you please follow up with @richorama |
Ahh, yeah. Ity should be easy enough to add documentation. thanks! |
The set documented is one supported across other languages. For example, .NET library does not support serializing a map within a map even though proton-j does. |
Hi @conniey The additional types I have asked for here to be included into the documentation, are indeed supported by this repository with the corresponding tests I have added to prove it. So still not clear to me why these types are not listed. cc: @richorama |
Hey, I'm working with our messaging team to add some more clarification around this in our docs. |
To follow up, as of this current release (azure-messaging-eventhubs 5.15.0), the supported types for
Due to the logic in our EventHubMessageSerializer when we are figuring out if an EventData fits within a batch. Any other types will cause an IllegalArgumentException to be thrown. For context, this logic was brought over from our legacy Event Hubs client library as-is (AmqpUtil.java). So other types did not work in that library either. Seeing this gap, I'm working on adding support for more types based on the ones in the AMQP protocol that can be mapped to a class in the Java SDK. |
Thanks @conniey for the update. It means you will also follow up for a fix regarding #31175, right? |
Yes, this is correct. I'll update the documentation and then create another GitHub issue to address this gap. |
Is your feature request related to a problem? Please describe.
In the EventHubs client, it is unclear which data types are supported for the properties of EventData class.
https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventData.java#L173-L196
Describe the solution you'd like
Could we have an annotation/documentation that describes what data types are supported, as is the case for the .NET client.
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/src/EventData.cs#L214-L260
Describe alternatives you've considered
It would be even nicer to have this included in the type system, rather than using a
Map<String, Object>
.Additional context
n/a
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: