Skip to content

Commit

Permalink
exec: bugfix in hash join planning
Browse files Browse the repository at this point in the history
It wasn't permitting post filter expressions due to failing to export
its column types.

Release note: None
  • Loading branch information
jordanlewis committed Apr 21, 2019
1 parent 357ef01 commit 1bd20d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/sql/distsqlrun/column_exec_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ func newColOperator(
leftTypes := conv.FromColumnTypes(spec.Input[0].ColumnTypes)
rightTypes := conv.FromColumnTypes(spec.Input[1].ColumnTypes)

columnTypes = make([]semtypes.T, len(leftTypes)+len(rightTypes))
copy(columnTypes, spec.Input[0].ColumnTypes)
copy(columnTypes[len(leftTypes):], spec.Input[1].ColumnTypes)

nLeftCols := uint32(len(leftTypes))
nRightCols := uint32(len(rightTypes))

Expand Down

0 comments on commit 1bd20d0

Please sign in to comment.