This message was deleted.
# troubleshooting
s
This message was deleted.
p
Anyone?
b
Not sure, you could experiment and see... But I've always seen context as a top-level JSON attribute. I'd expect it to apply to inner queries as well, so you could set items for both outer and inner, I'd think, in the same top-level context. That would be my expectation, but I haven't figured out a test to verify it.
p
Hm, it seems that nested context is respected - just run a nested query with different timeouts for outer and inner queries. See below (run for different timeouts in
scan
- timeouts for value 5, runs fine for 500):
Copy code
{
    "queryType": "timeseries",
    "dataSource": {
      "type": "query",
      "query": {
        "queryType": "scan",
        "dataSource": {
          "type": "table",
          "name": "wikipedia"
        },
        "intervals": {
          "type": "intervals",
          "intervals": [
            "-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"
          ]
        },
        "virtualColumns": [],
        "resultFormat": "compactedList",
        "batchSize": 20480,
        "limit": 10,
        "order": "none",
        "filter": {
          "type": "bound",
          "dimension": "added",
          "lower": "0",
          "upper": null,
          "lowerStrict": true,
          "upperStrict": false,
          "extractionFn": null,
          "ordering": {
            "type": "numeric"
          }
        },
        "columns": [
          "__time",
          "added",
        ],
        "legacy": false,
        "context": {
          "sqlOuterLimit": 100,
          "sqlQueryId": "521b2d60-2164-43ac-afe4-9aec03480f99",
          "timeout": 5
        },
        "descending": false,
        "granularity": {
          "type": "all"
        }
      }
    },
    "intervals": {
      "type": "intervals",
      "intervals": [
        "-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"
      ]
    },
    "descending": false,
    "virtualColumns": [],
    "filter": null,
    "granularity": {
      "type": "all"
    },
    "aggregations": [
      {
        "type": "longMax",
        "name": "a0",
        "fieldName": "added",
        "expression": null
      }
    ],
    "postAggregations": [],
    "limit": 2147483647,
    "context": {
      "skipEmptyBuckets": true,
      "sqlOuterLimit": 100,
      "sqlQueryId": "84271bba-4a62-489f-b3e3-cd0351eb61d4",
      "timeout": 10000
    }
  }
b
nice, very cool!