Skip to content

Instantly share code, notes, and snippets.

@izeigerman
Created January 29, 2021 19:07
Show Gist options
  • Save izeigerman/3ae464cce4705ed97e5967504ec79767 to your computer and use it in GitHub Desktop.
Save izeigerman/3ae464cce4705ed97e5967504ec79767 to your computer and use it in GitHub Desktop.
import shapeless.{ ::, HNil }
import implicits._
val deviceModel: AnnotatedDataFrame[DeviceModel, HNil] =
DataSource[DeviceModel].read
val deviceMeasurement: AnnotatedDataFrame[DeviceMeasurement, HNil] =
DataSource[DeviceMeasurement].read
val joined: AnnotatedDataFrame[DeviceMeasurement, DeviceModel :: HNil] =
deviceMeasurement.join(deviceModel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment