Here is an example query that ThoughtSpot generated, with the attached query comment that the pyUDF is parsing.
response size
incident id
SELECT
"ta_1"."INCIDENT_ID" "ca_1",
CASE
WHEN sum("ta_1"."RESPONSE_SIZE") IS NOT NULL THEN sum("ta_1"."RESPONSE_SIZE")
ELSE 0
END "ca_2"
FROM "GTM_DB"."CS_TOOLS_V150"."TS_BI_SERVER" "ta_1"
GROUP BY "ca_1"
LIMIT 5000
/* type: QUESTION_ANSWER_BOOK,
id: {"id":"5075a96a-f888-4126-93e5-da933c3d6405","name":"Untitled","owner":"5075a96a-f888-4126-93e5-da933c3d6405","type":"ImmutableAnswerSpec"},
vizId: 54051fe3-03e5-4903-bfa2-06f1a4a84793,
userId: 27741c8c-cc2c-44b9-8a0f-803e770e319e,
requestId: 49feb89b-36fe-48fc-a3ea-6d3ecfb27ea5,
task: SEARCH_DATA*/
comment | description |
---|---|
requestId |
A uuid for the event in ThoughtSpot's query data manager. |
task |
The activity that ThoughtSpot was taking when firing the query. |
type |
The ThoughtSpot object type which fired this query. |
vizId |
The specific visualization object which fired this query. |
id |
Additional information about the object which fired the query. |
userId |
The ThoughtSpot user which fired this query. |