org.partiql.lang.eval.physical.window.BuiltInWindowFunction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of partiql-lang-kotlin Show documentation
Show all versions of partiql-lang-kotlin Show documentation
An implementation of PartiQL for the JVM written in Kotlin.
package org.partiql.lang.eval.physical.window
import org.partiql.annotations.PartiQLExperimental
// TODO: Remove from experimental once https://github.com/partiql/partiql-docs/issues/31 is resolved and a RFC is approved
@PartiQLExperimental
internal fun createBuiltinWindowFunction(name: String) =
when (name) {
"lag" -> Lag()
"lead" -> Lead()
else -> error("Window function $name has not been implemented")
}