Skip to content

Java runtime with Event hub, Binary datatype and Cardinality many #297

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

Closed
amamounelsayed opened this issue Jul 7, 2019 · 1 comment
Closed
Assignees

Comments

@amamounelsayed
Copy link
Contributor

Investigative information

When posting a byte[] message to the event hub, the input message that I receive at Azure function is of type char[] and not byte[] and I get errors. Changing the Cardinality as "One", I get proper byte[], but it is not what cx needs.

Example:
@functionName("EventHubCall")
public void eventHubProcessor(
@EventHubTrigger(name = "msg", eventHubName = "%eventHubName%",
connection = "eventHubConnection", dataType = "binary",
cardinality = Cardinality.MANY) List<byte[]> messages,
final ExecutionContext context)

Expected behavior

The messages.get(0) received back byte[]

Actual behavior

The messages.get(0) received back as char [] not byte[]

Known workarounds

N/A

Related information

Provide any related information

  • Programming language used Java
@amamounelsayed amamounelsayed changed the title Java runtime with Event hub and Binary datatype and Cardinality many Java runtime with Event hub, Binary datatype and Cardinality many Jul 7, 2019
@amamounelsayed amamounelsayed self-assigned this Jul 7, 2019
@kulkarnisonia16 kulkarnisonia16 added this to the Functions Sprint 54 milestone Jul 11, 2019
@amamounelsayed
Copy link
Contributor Author

amamounelsayed commented Jul 25, 2019

This is the pull fix, #316

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 a pull request may close this issue.

2 participants