This message was deleted.
# general
s
This message was deleted.
s
I’m not sure. What context parameters are you using?
b
Can you post the query and the context settings?
j
yes, it’s some of our added KV pairs. Here is the query, (note: i know there is an easier query to achieve what my query does, but this is an example query to show on context KV pairs not passed through):
Copy code
{
  "queryType": "timeseries",
  "dataSource": {
    "type": "join",
    "left": {
      "type": "query",
      "query": {
        "queryType": "timeseries",
        "dataSource": "abc",
        "granularity": "day",
        "aggregations": [
          {
            "type": "longSum",
            "fieldName": "row1Count",
            "name": "countSum"
          }
        ],
        "intervals": [
          "2023-01-01T00:00:00Z/2023-01-10T00:00:00Z"
        ],
        "context": {}
      }
    },
    "right": {
      "type": "query",
      "query": {
        "queryType": "timeseries",
        "dataSource": "abc",
        "granularity": "day",
        "aggregations": [
          {
            "type": "longSum",
            "fieldName": "row2Count",
            "name": "countSum"
          }
        ],
        "intervals": [
          "2023-01-01T00:00:00Z/2023-01-10T00:00:00Z"
        ],
        "context": {}
      }
    },
    "rightPrefix": "r.",
    "condition": "__time == \"r.__time\"",
    "joinType": "LEFT"
  },
  "dimensions": [
    {
      "dimension": "__time",
      "outputName": "timestamp"
    }
  ],
  "limitSpec": null,
  "virtualColumns": null,
  "granularity": "all",
  "aggregations": [
    {
      "type": "doubleSum",
      "name": "result",
      "expression": "countSum/r.countSum"
    }
  ],
  "intervals": [
    "0000/3000"
  ],
  "context": {
    "keys": "values"
  }
}
The
"keys": "values"
within the outer timeseries queries context is not propagated to the inner timeseries.
b
I think each piece can have its own context. You might need to repeat the context in each query. Unless removing the
"context": {}
entries helps; maybe that's overriding the outer context, I'm not sure. (I could test if you don't agree or it doesn't work.)
j
Thanks, i will give it a try and update here.
👍 1
k
Curious to know what do these custom context keys do ?
j
Sorry for the late update: removed
"context": {}
. However, it’s still not propagated to inner queries.
Curious to know what do these custom context keys do ?
try to do some experiment to exam the query pattern
b
It seems you'd need to specify a context for each query separately. Idk if that is the original intent or not, but I'd guess so.
j
Got it, thanks!
b
yw, hope it helped!