Skip to content

Commit

Permalink
Support constraints / assignments
Browse files Browse the repository at this point in the history
This completes support for the remaining constraint and assignment
forms, and updates the tests accordingly.
  • Loading branch information
DavePearce committed Nov 25, 2024
1 parent a919667 commit e2d96a2
Show file tree
Hide file tree
Showing 57 changed files with 1,789 additions and 666 deletions.
2 changes: 2 additions & 0 deletions pkg/binfile/computation.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ func addInterleavedComputation(c *jsonInterleavedComputation, index uint,
// Update the column type
dst_type = sc.Join(dst_type, src_col.Type())
}
// Update multiplier
ctx = ctx.Multiply(uint(len(sources)))
// Finally, add the sorted permutation assignment
schema.AddAssignment(assignment.NewInterleaving(ctx, dst_hnd.column, sources, dst_type))
// Update allocation information.
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func checkTrace(ir string, cols []tr.RawColumn, schema sc.Schema, cfg checkConfi
for n := cfg.padding.Left; n <= cfg.padding.Right; n++ {
stats := util.NewPerfStats()
trace, errs := builder.Padding(n).Build(cols)

// Log cost of expansion
stats.Log("Expanding trace columns")
// Report any errors
reportErrors(cfg.strict, ir, errs)
Expand Down
Loading

0 comments on commit e2d96a2

Please sign in to comment.