Skip to content

Commit

Permalink
fix(sql): Truncate unexpected columns during join
Browse files Browse the repository at this point in the history
  • Loading branch information
orblivion committed Sep 23, 2020
1 parent b083482 commit 72ec2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/qds/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (rs *RecordStream) Next(ctx context.Context) (*execution.Record, error) {

aliasedRecord := make(map[octosql.VariableName]octosql.Value)
if rec, ok := ent.Value.([]interface{}); ok {
for i, x := range rec {
for i, x := range rec[:len(rs.aliasedFields)] {
switch v := x.(type) {
case string:
aliasedRecord[rs.aliasedFields[i]] = octosql.MakeString(v)
Expand Down

0 comments on commit 72ec2c4

Please sign in to comment.