Skip to content

Commit ac836d7

Browse files
committed
add TODO comments
1 parent f9f9ebf commit ac836d7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

enginetest/queries/script_queries.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11133,8 +11133,8 @@ where
1113311133
},
1113411134
{
1113511135
Query: "select * from " +
11136-
"(select 'parent' as db, id, words from t union " +
11137-
"select 'child' as db, id,words from t2) as combined where combined.id=1",
11136+
"(select 'parent' as tbl, id, words from t union " +
11137+
"select 'child' as tbl, id,words from t2) as combined where combined.id=1",
1113811138
Expected: []sql.Row{
1113911139
{"parent", 1, "foo"},
1114011140
{"child", 1, "boo"},

sql/analyzer/fix_exec_indexes.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,8 @@ func columnIdsForNode(n sql.Node) []sql.ColumnId {
712712
break
713713
}
714714
}
715+
// TODO: columns are appended in increasing order by ColumnId instead of how they are actually ordered. likely
716+
// needs to be fixed
715717
cols.ForEach(func(col sql.ColumnId) {
716718
ret = append(ret, col)
717719
})

sql/plan/set_op.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ var _ sql.Node = (*SetOp)(nil)
4444
var _ sql.Expressioner = (*SetOp)(nil)
4545
var _ sql.CollationCoercible = (*SetOp)(nil)
4646

47-
// var _ sql.NameableNode = (*SetOp)(nil)
47+
// TODO: This might not be necessary now that SetOp exec indexes are assigned based on its left child node, instead of
48+
// the cols in ColSet
4849
var _ TableIdNode = (*SetOp)(nil)
4950

5051
// NewSetOp creates a new SetOp node with the given children.

0 commit comments

Comments
 (0)