-
Notifications
You must be signed in to change notification settings - Fork 107
Handle eventhub cardinality #527
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
Conversation
Can you please send a separate PR for updating proto file? |
e78fd17
to
20fb4f5
Compare
@pragnagopa, rebased on top of the new |
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.
no changes needed in the worker or library to convert TypedDataCollection to a list of events? Can you please point me code where this conversion happens?
"name": "events", | ||
"direction": "in", | ||
"cardinality": "many", | ||
"dataType": "string", |
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.
do not specify dataType. String is default
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.
Looks like we are failing on a JSON deserialization step when dataType
is not specified as string
. The SDK must be assuming that we are writing a JSON deserializable string by default. I was able to repro in Node. Will open an issue against the SDK.
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.
Opened an issue on the EventHub extension: Azure/azure-functions-eventhubs-extension#17.
Here is the corresponding library code: Azure/azure-functions-python-library#24 |
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.
👍
Fixes #411