You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when working with ODataUriParser instance I've ran into an exception when an aggregation function average does not support attribute of the type Int16 (or Byte for that matter). The exception comes from the file ApplyBinder.cs. In my eyes this is incorrect behavior. If you decide that this is indeed a bug and not desired behaviour then I can provide my capacity to fix this issue.
Example query: $apply=aggregate(Short with average as AverageLength)
Short attribute must be of type Int16 in edm model.
Thank you for response!
The text was updated successfully, but these errors were encountered:
Thank you @davidKolar175 for reporting this issue. This is most likely an oversight and therefore a bug. Since you already identified where the problem is, we'd welcome a pull request contribution if you're in a position to.
@davidKolar175 can you confirm that you're intending to use this with the odata client and not on the service side of your implementation? There are additional changes needed if we are going to expose this in AspNetCoreOData.
@corranrogue9 Not quite sure what do you mean by that question. Our use case is quite unique I would say, we use OData for our new minimal API project and since there is no native compatibility yet we try to only pick certain functionalities that would take too long to implement. ODataUriParser is one of the functionalities where we use it to help us create ODataFeature instance. And from that point we don't realz use anything from Odata nuget.
Hello,
when working with
ODataUriParser
instance I've ran into an exception when an aggregation functionaverage
does not support attribute of the type Int16 (or Byte for that matter). The exception comes from the file ApplyBinder.cs. In my eyes this is incorrect behavior. If you decide that this is indeed a bug and not desired behaviour then I can provide my capacity to fix this issue.Example query:
$apply=aggregate(Short with average as AverageLength)
Short attribute must be of type Int16 in edm model.
Thank you for response!
The text was updated successfully, but these errors were encountered: