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

* fix: sql parser table name case
This commit is contained in:
Scott Lepper authored and GitHub committed 2024-05-02 08:43:20 -04:00
1 parent ac07a9794b
commit 4fd2cb6014
3 files changed
+63 -15

No files matched your search

+5 -1
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...)
}