MCPcopy Index your code
hub / github.com/cockscomb/cel2sql / isDurationRelatedType

Function isDurationRelatedType

cel2sql.go:182–189  ·  view source on GitHub ↗
(typ *exprpb.Type)

Source from the content-addressed store, hash-verified

180}
181
182func isDurationRelatedType(typ *exprpb.Type) bool {
183 abstractType := typ.GetAbstractType()
184 if abstractType != nil {
185 name := abstractType.GetName()
186 return name == "INTERVAL"
187 }
188 return typ.GetWellKnown() == exprpb.Type_DURATION
189}
190
191func (con *converter) callTimestampOperation(fun string, lhs *exprpb.Expr, rhs *exprpb.Expr) error {
192 lhsParen := isComplexOperatorWithRespectTo(fun, lhs)

Callers 1

visitCallBinaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected