Caused by: java.lang.IllegalArgumentException: source node name not found: Table{t1, Optional.empty}
at io.wren.base.sqlrewrite.WrenSqlRewrite.lambda$apply$5(WrenSqlRewrite.java:102)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at io.wren.base.sqlrewrite.WrenSqlRewrite.lambda$apply$8(WrenSqlRewrite.java:102)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at io.wren.base.sqlrewrite.WrenSqlRewrite.apply(WrenSqlRewrite.java:100)
at io.wren.base.sqlrewrite.WrenSqlRewrite.apply(WrenSqlRewrite.java:83)
at io.wren.base.sqlrewrite.WrenPlanner.rewrite(WrenPlanner.java:51)
at io.wren.base.sqlrewrite.WrenPlanner.rewrite(WrenPlanner.java:43)
at io.wren.main.PreviewService.lambda$dryRun$2(PreviewService.java:129)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
Describe the bug The count(*) syntax can't be applied to a CTE. It's an issue responded to by the Discord community https://discord.com/channels/1227143286951514152/1285568489414856815/1285568647775129682 To Reproduce
Given the request body for preview API
Then, got the error message
Expected behavior The SQL should work.