Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
Signed-off-by: wjhuang2016 <[email protected]>
  • Loading branch information
wjhuang2016 committed Aug 17, 2021
1 parent 8e586fb commit 0a1e2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func GetUsedList(usedCols []*Column, schema *Schema) []bool {
// When cols are a generated expression col, compare them in terms of virtual expr.
if expr, ok := col.VirtualExpr.(*ScalarFunction); ok && used[i] {
for j, colToCompare := range schema.Columns {
if !used[j] && j != i && (expr).Equal(nil, colToCompare.VirtualExpr) && col.RetType.Equal(colToCompare.GetType()) {
if !used[j] && j != i && (expr).Equal(nil, colToCompare.VirtualExpr) && col.RetType.Equal(colToCompare.RetType) {
used[j] = true
}
}
Expand Down

0 comments on commit 0a1e2d2

Please sign in to comment.