bug fixes on flattening

This commit is contained in:
2022-11-17 17:21:26 +08:00
parent 4f7f544983
commit 8e482a1228
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -207,7 +207,10 @@ class projection(ast_node):
this_type = enlist(this_type)
proj_expr = enlist(proj_expr)
for t, n, pexpr, cp in zip(this_type, name, proj_expr, compound):
t = VectorT(t) if cp else t
if cp:
# Force postporcessing for compound columns
t = VectorT(t)
self.has_postproc = True
offset = len(col_exprs)
if n not in self.var_table:
self.var_table[n] = offset