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

Max and Min function on mvfield(s) #49

Open
tombonfert opened this issue Nov 17, 2021 · 0 comments
Open

Max and Min function on mvfield(s) #49

tombonfert opened this issue Nov 17, 2021 · 0 comments

Comments

@tombonfert
Copy link
Contributor

tombonfert commented Nov 17, 2021

  • Min(X,...) and Max(X,...) functions take an arbitrary number of arguments and return the minimum and maximum per row, respectively.
  • Currently, our implementation is good for single value fields in the input. We are calling Spark's 'least' and 'greatest' method.
  • Our implementation fails or produces wrong results for the following inputs:
    • The only input argument is a mvfield -> Need to call 'array_min' or 'array_max' instead of 'least' or 'greatest'.
    • There are several mvfields as input -> Create array of input arrays -> Flatten -> call array_min / array_max
    • In Splunk it is also possible to provide a mixture of mvfields and svfields in the input.
  • Solution: We need to know the data types of the input arguments.
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

No branches or pull requests

1 participant