fix: sql expressions - sql parser table name case (#87196)

* fix: sql parser table name case
This commit is contained in:
Scott Lepper
2024-05-02 13:43:20 +01:00
committed by GitHub
parent ac07a9794b
commit 4fd2cb6014
3 changed files with 63 additions and 15 deletions

View File

@ -74,7 +74,11 @@ func (gr *SQLCommand) Execute(ctx context.Context, now time.Time, vars mathexp.V
allFrames := []*data.Frame{}
for _, ref := range gr.varsToQuery {
results := vars[ref]
results, ok := vars[ref]
if !ok {
logger.Warn("no results found for", "ref", ref)
continue
}
frames := results.Values.AsDataFrames(ref)
allFrames = append(allFrames, frames...)
}