From 9ac04148673a98a0829bd72d1563cff3b54244ac Mon Sep 17 00:00:00 2001 From: Gus <8219721+srfrog@users.noreply.github.com> Date: Tue, 26 Mar 2019 17:45:02 -0700 Subject: [PATCH] Turn obsolete error into warning (#3172) * query/query.go: turn obsolete error into warning The default value logic obseleted this error. When generating the output graph we already have all the values necessary. This error was when we needed to match uidToVal to NeedsVar. * query/query.go: remove info log --- query/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query/query.go b/query/query.go index e7d899a1a34..0a54bafb8f5 100644 --- a/query/query.go +++ b/query/query.go @@ -340,7 +340,7 @@ func aggWithVarFieldName(pc *SubGraph) string { func addInternalNode(pc *SubGraph, uid uint64, dst outputNode) error { if len(pc.Params.uidToVal) == 0 { - return x.Errorf("Wrong use of var() with %v.", pc.Params.NeedsVar) + return nil } sv, ok := pc.Params.uidToVal[uid] if !ok || sv.Value == nil {