MCPcopy Create free account
hub / github.com/datasweet/datatable / RightJoin

Method RightJoin

join.go:39–41  ·  view source on GitHub ↗

RightJoin returns all records from the right table (table2), and the matched records from the left table (table1). The result is NULL from the left side, when there is no match. <!> RightJoin transforms an expr column to a raw column

(right *DataTable, on []JoinOn)

Source from the content-addressed store, hash-verified

37// The result is NULL from the left side, when there is no match.
38// <!> RightJoin transforms an expr column to a raw column
39func (left *DataTable) RightJoin(right *DataTable, on []JoinOn) (*DataTable, error) {
40 return newJoinImpl(rightJoin, []*DataTable{left, right}, on).Compute()
41}
42
43// RightJoin the tables.
44// tables[0] is used as reference datatable.

Callers 2

TestRightJoinFunction · 0.80
TestRightJoinWithExprFunction · 0.80

Calls 2

newJoinImplFunction · 0.85
ComputeMethod · 0.80

Tested by 2

TestRightJoinFunction · 0.64
TestRightJoinWithExprFunction · 0.64