scala.googleapis.bigquery.PartitionSkew.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class PartitionSkew(
/** Output only. Source stages which produce skewed data.
*/
skewSources: Option[List[SkewSource]] = None
)
object PartitionSkew {
implicit val encoder: Encoder[PartitionSkew] = Encoder.instance { x =>
Json.obj("skewSources" := x.skewSources)
}
implicit val decoder: Decoder[PartitionSkew] = Decoder.instance { c =>
for {
v0 <- c.get[Option[List[SkewSource]]]("skewSources")
} yield PartitionSkew(v0)
}
}