sas_singlestore_log
Retrieve the SingleStore statements a SAS run executed between two epoch timestamps from MV_PLANCACHE, showing the SQL sent by PROC SQL, FedSQL, DATA step, or CAS.
Instructions
The SingleStore side of a SAS run: the statements the cluster's aggregators ran between started_at and
ended_at (the run's epoch seconds), from MV_PLANCACHE - what SAS (PROC SQL, FedSQL, DATA step, CAS) really
sent, whatever library it used. The plan cache keeps totals per plan, so rows and ms are per run on average;
literals show as ^; another session's identical statement in the same seconds would show too.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ended_at | Yes | ||
| started_at | Yes |