(target *exprpb.Expr, args []*exprpb.Expr)
| 342 | } |
| 343 | |
| 344 | func (con *converter) callInterval(target *exprpb.Expr, args []*exprpb.Expr) error { |
| 345 | con.str.WriteString("INTERVAL ") |
| 346 | if err := con.visit(args[0]); err != nil { |
| 347 | return err |
| 348 | } |
| 349 | con.str.WriteString(" ") |
| 350 | datePart := args[1] |
| 351 | con.str.WriteString(datePart.GetIdentExpr().GetName()) |
| 352 | return nil |
| 353 | } |
| 354 | |
| 355 | func (con *converter) callExtractFromTimestamp(function string, target *exprpb.Expr, args []*exprpb.Expr) error { |
| 356 | con.str.WriteString("EXTRACT(") |