Skip to content

Commit

Permalink
feat(cognitarium): allow to build plan on lateral join based clause
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Aug 14, 2024
1 parent da76633 commit ac6854b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contracts/axone-cognitarium/src/querier/plan_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ impl<'a> PlanBuilder<'a> {
fn build_node(&mut self, where_clause: &WhereClause) -> StdResult<QueryNode> {
match where_clause {
WhereClause::Bgp { patterns } => self.build_from_bgp(patterns.iter()),
WhereClause::LateralJoin { .. } => Err(StdError::generic_err("not implemented")),
WhereClause::LateralJoin { left, right } => Ok(QueryNode::ForLoopJoin {
left: Box::new(self.build_node(left)?),
right: Box::new(self.build_node(right)?),
}),
}
}

Expand Down

0 comments on commit ac6854b

Please sign in to comment.