Skip to content

Seq creation function #163

@Jolanrensen

Description

@Jolanrensen

For creating custom SparkSQL Expressions that use org.apache.spark.sql.catalyst.expressions.LambaFunction and possibly in other places in the API a Scala Seq.
Note that the Java API almost never uses Seqs, so this function would only have to be used in edge cases.

Implementation could look like:

fun <T> seqOf(vararg elements: T): scala.collection.Seq<T> = scala.collection.JavaConverters.asScalaBuffer(elements.asList())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions