()
| 137 | } |
| 138 | |
| 139 | func (o SpansetOperation) validate() error { |
| 140 | if err := o.LHS.validate(); err != nil { |
| 141 | return err |
| 142 | } |
| 143 | |
| 144 | if o.Op == OpNotExists || o.Op == OpExists { |
| 145 | return fmt.Errorf("illegal operation for the given type: %s", o.String()) |
| 146 | } |
| 147 | |
| 148 | return o.RHS.validate() |
| 149 | } |
| 150 | |
| 151 | func (f SpansetFilter) validate() error { |
| 152 | if err := f.Expression.validate(); err != nil { |