InfluxDB SQL: Provide raw query preview for query history (#75030)

* log the sql query

* render the raw sql

* Update rawQuery

* unit tests
This commit is contained in:
ismail simsek
2023-09-22 17:40:18 +02:00
committed by GitHub
parent d076f733e9
commit a64bfdfb94
4 changed files with 88 additions and 3 deletions
+1
View File
@@ -50,6 +50,7 @@ func Query(ctx context.Context, dsInfo *models.DatasourceInfo, req backend.Query
continue
}
logger.Info(fmt.Sprintf("InfluxDB executing SQL: %s", qm.RawSQL))
info, err := r.client.Execute(ctx, qm.RawSQL)
if err != nil {
tRes.Responses[q.RefID] = backend.ErrDataResponse(backend.StatusInternal, fmt.Sprintf("flightsql: %s", err))