Skip to content
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

Array value "null" is error in pre-processor #185

Closed
dcmartin opened this issue Mar 25, 2020 · 2 comments
Closed

Array value "null" is error in pre-processor #185

dcmartin opened this issue Mar 25, 2020 · 2 comments
Assignees
Labels
kind/feature New feature or request

Comments

@dcmartin
Copy link

If an specified array value in a stream is null the pre-processor indicates an invalid value; I have not checked to determine if a value of [] suffices to eliminate this error, but IMHO null should be a valid value for both array and struct; in my instance I have an array of struct of string and bigint

For example:

[{"count":5,"detected":[{"count":3,"entity":"car"},{"count":2,"entity":"truck"}],"event":{"camera":"woodshed","device":"ftpcams"}}]
[{"error":"error in preprocessor: invalid data type for detected, expect array but found <nil>(<nil>)"}]
[{"count":7,"detected":[{"count":1,"entity":"cow"},{"count":3,"entity":"dog"},{"count":2,"entity":"person"},{"count":1,"entity":"sheep"}],"event":{"camera":"sheshed","device":"netcams"}}]
[{"count":1,"detected":[{"count":1,"entity":"person"}],"event":{"camera":"foyer","device":"ftpcams"}}]
@jinfahua jinfahua added the kind/feature New feature or request label Mar 26, 2020
@jinfahua
Copy link
Collaborator

@dcmartin We'll fix the issue in the next release. Thanks for your feedback!

@ngjaying
Copy link
Collaborator

Released at v0.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants