wirybeaver commented on PR #12532:
URL: https://github.com/apache/pinot/pull/12532#issuecomment-1984137517
@saurabhd336 Thanks, I have reviewed your PR just a while ago, now I
understand that you want to extract element whose type is exactly an array.
I actually want to make the return_type to an absolute MV, which can
consisting of values from different arrays.
```
String[] records = {
"{\"foo\":[{\"bar\":[\"x\",\"y\"]},{\"bar\":[\"a\",\"b\"]}],\"foo2\":[\"u\"]}",
"{\"foo\":[{\"bar\":[\"y\",\"z\"]}],\"foo2\":[\"u\"]}"
};
```
for example, jsonPath = '.foo[*].bar[0]', return [x, a] for 1st record and
[y] for 2nd record.
Your approach to extracting a pure array element is likely faster. So I am
good to create a new transform function.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]