instead of this unpacking, can you do:
.map(('itemPairCount, 'item1Count, 'item2Count) -> 'itemUnionCount) {
  case (itemPairCount: Long, item1Count: Long, item2Count: Long) => item1Count + item2Count - itemPairCount
}