Skip to content

Instantly share code, notes, and snippets.

@ctataryn
Created March 10, 2016 22:25
Show Gist options
  • Save ctataryn/9f5401624a0c8e5c4c1f to your computer and use it in GitHub Desktop.
Save ctataryn/9f5401624a0c8e5c4c1f to your computer and use it in GitHub Desktop.
val query =
userDistributionQuery.leftJoin(ChunkTable.query.filter { c => c.state === ChunkState.ASSIGNED.toString } )
.on { case ((u_id, d_id), c) => c.distributionId === d_id && c.transcriberId === u_id }
.map { case ((u_id, d_id), c) => c.id.? }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment