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

Method LeftJoin

join.go:26–28  ·  view source on GitHub ↗

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

(right *DataTable, on []JoinOn)

Source from the content-addressed store, hash-verified

24// The result is NULL from the right side, if there is no match.
25// <!> LeftJoin transforms an expr column to a raw column
26func (left *DataTable) LeftJoin(right *DataTable, on []JoinOn) (*DataTable, error) {
27 return newJoinImpl(leftJoin, []*DataTable{left, right}, on).Compute()
28}
29
30// LeftJoin the tables.
31// tables[0] is used as reference datatable.

Callers 5

TestWhereFunction · 0.80
TestAggregateFunction · 0.80
TestSortFunction · 0.80
TestLeftJoinFunction · 0.80
TestLeftJoinWithExprFunction · 0.80

Calls 2

newJoinImplFunction · 0.85
ComputeMethod · 0.80

Tested by 5

TestWhereFunction · 0.64
TestAggregateFunction · 0.64
TestSortFunction · 0.64
TestLeftJoinFunction · 0.64
TestLeftJoinWithExprFunction · 0.64