aboutsummaryrefslogtreecommitdiffstats
path: root/lib/drl/executor.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drl/executor.ml')
-rw-r--r--lib/drl/executor.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/drl/executor.ml b/lib/drl/executor.ml
index 34edc08..b634ba9 100644
--- a/lib/drl/executor.ml
+++ b/lib/drl/executor.ml
@@ -32,6 +32,10 @@ module Make (NT : Nt.S) = struct
| Ast.Project (attrs, query) ->
let* source = compile resolve query in
Ok (Nt.Project { attrs; source })
+ | Ast.Cartesian (q1, q2) ->
+ let* p1 = compile resolve q1 in
+ let* p2 = compile resolve q2 in
+ Ok (Nt.Join { left = p1; right = p2; []})
| Ast.Rename _ -> Error (Error.unsupported_operator "TODO")
| _ ->
Error (Error.unsupported_operator