Skip to content

Provide a way to construct a TypedColumn reference from a Symbol #186

@iravid

Description

@iravid

Currently, we cannot chain selects that reference columns introduced in a select without introducing intermediate vals. Here's a (contrived) example:

case class X2(i: Int, j: Int)

val ds = TypedDataset.create(Seq(X2(10, 10))

ds.select(ds('i), ds('j), ds('i) + 1).select(ds('_3))

One possible solution for this would be to provide an overload to TypedDataset.select that uses Symbol arguments and a similar frameless.functions.col function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions