gianm commented on PR #15300:
URL: https://github.com/apache/druid/pull/15300#issuecomment-1788620305

   @LakshSingla this is inspired by fixing a bug with the `maxSubqueryBytes` 
stuff where arrays popped out of nowhere, due to strings with unknown 
multivaluedness being fed into frames and then into expressions. A query like 
the following would exhibit the problem. Any suggestions on where might be a 
good place to add a test like this? I saw `CalciteSubqueryTest`, but that only 
accepts SQL queries, and I don't have a SQL query that repros the bug.
   
   ```json
   {
     "queryType": "scan",
     "dataSource": {
       "type": "query",
       "query": {
         "queryType": "scan",
         "dataSource": "wikipedia",
         "intervals": 
"-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z",
         "resultFormat": "compactedList",
         "columns": [
           "isRobot"
         ],
         "legacy": false,
         "limit": 1001
       }
     },
     "intervals": 
"-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z",
     "virtualColumns": [
       {
         "type": "expression",
         "name": "v",
         "expression": "case_searched((\"isRobot\" == 'true'),1,0)",
         "outputType": "LONG"
       }
     ],
     "resultFormat": "compactedList",
     "columns": [
       "isRobot",
       "v"
     ],
     "legacy": false,
     "context": {
       "maxSubqueryBytes": "auto"
     },
     "granularity": "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]

Reply via email to