Provide a way to construct a `TypedColumn` reference from a Symbol
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- scala, spark
- Domain
- data-engineering
Research direction
Start by reviewing the linked pull request 187 alongside the issue's chained TypedDataset.select example. Check the proposed TypedDataset.select overload and frameless.functions.col path, and confirm that the example can reference the newly introduced column without an intermediate val.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Scala
- Stars
- 895
- Forks
- 135
- Avg merge
- 7h 38m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from typelevel/frameless
-
Scala 3 buildsOpenenhancement feature help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
enhancement feature
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
All issues in typelevel/frameless
Similar issues
-
bug performance priority:medium regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/datafusion-comet#6313 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
com-lihaoyi/mill#7624 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lichess-org/lila#21845 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day