ParseNoOptimizations parses a TraceQL query without applying any AST transformations. Use for contexts where only hints or query structure are inspected and not executed, like hint extraction, validation, etc.
(s string)
| 31 | // ParseNoOptimizations parses a TraceQL query without applying any AST transformations. |
| 32 | // Use for contexts where only hints or query structure are inspected and not executed, like hint extraction, validation, etc. |
| 33 | func ParseNoOptimizations(s string) (*RootExpr, error) { |
| 34 | return parseInternal(s, []string{TransformationAll}, false) |
| 35 | } |
| 36 | |
| 37 | func parseInternal(s string, skipTransformations []string, allowUnsafeHints bool) (expr *RootExpr, err error) { |
| 38 | defer func() { |