Skip to content

Commit

Permalink
Make sure Values operator conserve the table qualifier
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Feb 13, 2025
1 parent b715c40 commit 6b5f854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/planbuilder/operators/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (v *Values) getColsFromCtx(ctx *plancontext.PlanningContext) sqlparser.Colu
func (v *Values) GetColumns(ctx *plancontext.PlanningContext) []*sqlparser.AliasedExpr {
var cols []*sqlparser.AliasedExpr
for _, column := range v.getColsFromCtx(ctx) {
cols = append(cols, sqlparser.NewAliasedExpr(sqlparser.NewColName(column.String()), ""))
cols = append(cols, sqlparser.NewAliasedExpr(sqlparser.NewColNameWithQualifier(column.String(), sqlparser.NewTableName(v.Name)), ""))
}
return cols
}
Expand Down

0 comments on commit 6b5f854

Please sign in to comment.