Skip to content

Instantly share code, notes, and snippets.

@izeigerman
Last active January 30, 2021 22:20
Show Gist options
  • Save izeigerman/6d4c4a876b715d8245f30ab8747228f3 to your computer and use it in GitHub Desktop.
Save izeigerman/6d4c4a876b715d8245f30ab8747228f3 to your computer and use it in GitHub Desktop.
import shapeless.::
import shapeless.ops.hlist.Prepend
sealed trait Join[L, LJ <: JoinList, R, RJ <: JoinList] {
def join(
left: AnnotatedDataFrame[L, LJ],
right: AnnotatedDataFrame[R, RJ]
)(implicit P: Prepend[LJ, RJ]): AnnotatedDataFrame[L, R :: P.Out]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment