Skip to content

Commit

Permalink
Turn obsolete error into warning (#3172)
Browse files Browse the repository at this point in the history
* 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
srfrog authored Mar 27, 2019
1 parent 1f40701 commit 9ac0414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query/query.go
Original file line number Diff line number Diff line change
@@ -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 {

0 comments on commit 9ac0414

Please sign in to comment.