8000 mvcount returns error when there's a string value · Issue #587 · teragrep/pth_10 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mvcount returns error when there's a string value #587

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

Open
ronja-ui opened this issue May 22, 2025 · 0 comments
Open

mvcount returns error when there's a string value #587

ronja-ui opened this issue May 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ronja-ui
Copy link
Contributor
ronja-ui commented May 22, 2025

Describe the bug
When string values are used with mvcount(), it returns an error:

[DATATYPE_MISMATCH.UNEXPECTED_INPUT_TYPE] Cannot resolve "size(ipaddress)" due to data type mismatch: Parameter 1 requires the ("ARRAY" or "MAP") type, however "ipaddress" has the type "STRING".;

Expected behavior
If a column has a string value, it should be counted as 1. If there's no values, then NULL should be returned.

How to reproduce

index=crud earliest=-5y
| spath
| eval test = mvcount(ipaddress)

Screenshots

Software version
pth_10 version: 8.4.2
pth_06 version: 3.3.4
pth_03 version: 9.3.0

Additional context

@ronja-ui ronja-ui added the bug Something isn't working label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0