Skip to content

Commit b3d0f64

Browse files
committed
internal/rule: make squashedTable sql.Node instead of sql.Table
If a node is a sql.Table, it's enforced using a validation rule that all fields in the schema must have as the source the name of the table. To bypass that validation, we need to make squashedTable a sql.Node instead. Signed-off-by: Miguel Molina <[email protected]>
1 parent e9623e2 commit b3d0f64

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/rule/squashjoins.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,11 +586,8 @@ func newSquashedTable(iter gitbase.ChainableIter, mapping []int, tables ...strin
586586
return &squashedTable{iter, tables, mapping, nil}
587587
}
588588

589-
var _ sql.Table = (*squashedTable)(nil)
589+
var _ sql.Node = (*squashedTable)(nil)
590590

591-
func (t *squashedTable) Name() string {
592-
return "SquashedTable"
593-
}
594591
func (t *squashedTable) Schema() sql.Schema {
595592
if len(t.schemaMappings) == 0 {
596593
return t.iter.Schema()

0 commit comments

Comments
 (0)