somu-imply commented on PR #13268:
URL: https://github.com/apache/druid/pull/13268#issuecomment-1334524464
The `ColumnarValueUnnestCursor` was taking care of List or Strings but in
case of virtual columns they are an array of objects. The change is made to
support virtual columns and the following type of query.
```
{
"queryType": "scan",
"dataSource":{
"type": "unnest",
"base": {
"type": "table",
"name": "foo1"
},
"column": "v0",
"outputName": "unnest-v0"
}
"intervals": {
"type": "intervals",
"intervals": [
"-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"
]
},
"virtualColumns": [
{
"type": "expression",
"name": "v0",
"expression": "array(\"m1\",\"m2\")",
"outputType": "ARRAY<LONG>"
}
],
"resultFormat": "compactedList",
"limit": 1001,
"columns": [
"unnest-v0"
],
"legacy": false,
"context": {
"populateCache": false,
"queryId": "d273facb-08cc-4de7-ac0b-d0b82173e531",
"sqlOuterLimit": 1001,
"sqlQueryId": "d273facb-08cc-4de7-ac0b-d0b82173e531",
"useCache": false,
"useNativeQueryExplain": true
},
"granularity": {
"type": "all"
}
}
```
--
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]