Commit 339caee
committed
Bootstrap AST validators in ValidatorRegistry.get_instance()
The query-language REGISTRY snapshots ValidatorRegistry.get_instance()
at import time. This happens during engine bootstrap before
bootstrap_ast_validators() populates the singleton, resulting in an
empty REGISTRY and KeyError in DruidQueryTransformer on UDF queries.
Call bootstrap_ast_validators() in get_instance() when creating the
singleton, matching the pattern used by smite's ValidatorRegistry.
The import is deferred to avoid circular imports with plugin_manager.1 parent 4bf4d75 commit 339caee
File tree
1 file changed
+3
-0
lines changed- osprey_worker/src/osprey/engine/ast_validator
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments