-
Notifications
You must be signed in to change notification settings - Fork 185
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
[Bug] FunctionMetadataGenerator does not assign cardinality as many for IEnumerable<> scenarios #1204
Comments
From a quick skim it seems we have handling and tests cases for Cardinality with EventHubs bindings but not Blobs ... from offline discussion we may also need handling for CosmosDB. References that may help with investigation/fix:
|
Found some information in blob extension documentation. This can probably be the list of scenarios expected to be supported by this extension. Another thing I found which may be helpful with the investigation here is public sealed class EventHubTriggerAttribute : TriggerBindingAttribute, ISupportCardinality
{
// Batch by default
private bool _isBatched = true; public sealed class KafkaTriggerAttribute : TriggerBindingAttribute, ISupportCardinality
{
private bool _isBatched = false; |
I think the addition of the This implies that there's isn't a bug with Edit: will also need to update this to support |
Investigate and fix in FunctionMetadataGenerator and Source Generation why
Cardinality
is not assigned toMany
when function binds toIEnumerable<>
type. This stops the collection support even when it is enabled by the extension - here as Host uses the value of cardinality to assign array type.Sample function for repro -
Current output function.metadata -
The text was updated successfully, but these errors were encountered: