bynk.query.join_key_mismatch
Error A joinOn/leftJoin left and right key function return different types.
joinOn and leftJoin pair up rows whose two keys are equal, and equality is only meaningful between values of one type. A String key on one side and an Int on the other can never match, so the join is refused. Change one key function so that both return the same type. A join on a condition rather than equal keys is join.
Example
type Order = { customerId: String, region: Int }type Customer = { code: String, region: Int }
orders.joinOn(customers, (o) => o.customerId, (c) => c.region, (o, c) => c.region).count() // ✗ `String` against `Int`
orders.joinOn(customers, (o) => o.customerId, (c) => c.code, (o, c) => c.region).count() // ✓ both `String`In the Book
See also
- Every code in its category, Other, on the diagnostic index.
bynk explain bynk.query.join_key_mismatchshows the same from the installed toolchain, without a network.