Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

allow specifying a typed schema #1

@cvogt

Description

@cvogt

Assuming your data follows a rigid schema, it would be great to allow Quark code to be type checked against it. E.g. something like

trait Schema{
  def country: Field[String]
  def age: Field[Int]
}

import quasar.quark._

object Example {
  def main(args: Array[String]): Unit = {
    val dataset = Dataset.loadTypedAs[Schema]("/prod/profiles")

    val averageAge = dataset.groupBy(_.country).map(_.age).reduceBy(_.average)

    val stream = averageAge.evalTo("/prod/profiles_2")
  }
}

Quark puts Quasar into similar territory with Slick and Quill. Maybe there are things to learn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions