Commit f467628
committed
Set CTE indirect on hierarchy objects for query rewriting
The CTE indirect from annotated AST was being retrieved but never set
on the hierarchy objects. This caused from_rewrite.go to fail finding
the indirect via GetTableMeta().GetIndirect(), resulting in empty
results (0 rows) from CTE queries.
Now the cteIndirect is properly set via hr.SetIndirect(cteIndirect)
after creating the hierarchy objects for CTE references.1 parent 897a1cd commit f467628
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
605 | 608 | | |
606 | 609 | | |
607 | 610 | | |
| |||
0 commit comments