Skip to content

Conversation

@maiqbal11
Copy link
Contributor

Fixes #411

@pragnagopa
Copy link
Member

Can you please send a separate PR for updating proto file?

@maiqbal11 maiqbal11 mentioned this pull request Aug 21, 2019
@maiqbal11 maiqbal11 force-pushed the handle-eventhub-cardinality branch from e78fd17 to 20fb4f5 Compare August 22, 2019 17:49
@maiqbal11
Copy link
Contributor Author

@pragnagopa, rebased on top of the new dev after updating protobuf.

Copy link
Member

@pragnagopa pragnagopa left a 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",
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@maiqbal11
Copy link
Contributor Author

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?

Here is the corresponding library code: Azure/azure-functions-python-library#24

Copy link
Member

@pragnagopa pragnagopa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@maiqbal11 maiqbal11 merged commit 0217fe4 into dev Sep 4, 2019
@maiqbal11 maiqbal11 deleted the handle-eventhub-cardinality branch September 4, 2019 20:33
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.

How to receive events batch in Eventhub triggered function

3 participants