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

Function InnerJoin

join.go:19–21  ·  view source on GitHub ↗

InnerJoin selects records that have matching values in both tables. tables[0] is used as reference datatable.

(tables []*DataTable, on []JoinOn)

Source from the content-addressed store, hash-verified

17// InnerJoin selects records that have matching values in both tables.
18// tables[0] is used as reference datatable.
19func InnerJoin(tables []*DataTable, on []JoinOn) (*DataTable, error) {
20 return newJoinImpl(innerJoin, tables, on).Compute()
21}
22
23// LeftJoin returns all records from the left table (table1), and the matched records from the right table (table2).
24// The result is NULL from the right side, if there is no match.

Callers

nothing calls this directly

Calls 2

newJoinImplFunction · 0.85
ComputeMethod · 0.80

Tested by

no test coverage detected