Skip to content

Commit 58f56cd

Browse files
committed
fix bug in unnest
1 parent b1215fb commit 58f56cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rewrite.rs

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ fn unnest_json_calls(func: &ScalarFunction) -> Option<Transformed<Expr>> {
9191
return None;
9292
}
9393

94+
if func.name() != inner_func.func.name() {
95+
return None;
96+
}
97+
9498
let mut args = inner_func.args.clone();
9599
args.extend(outer_args_iter.cloned());
96100
// See #23, unnest only when all lookup arguments are literals

0 commit comments

Comments
 (0)