frameless
ZparkIO
Our great sponsors
frameless | ZparkIO | |
---|---|---|
9 | 1 | |
869 | 172 | |
0.1% | - | |
8.2 | 4.2 | |
5 days ago | 20 days ago | |
Scala | Scala | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
frameless
-
for comprehension and some questions
I don't see how Spark is any "less controversial" when the Spark Delay instance for cats-effect takes an entire SparkSession implicitly.
-
Why use Spark at all?
To add to this I lately have used Spark with frameless for compile time safety and it's an interesting library that works well with Spark.
-
Does anyone here (intentionally) use Scala without an effects library such as Cats or ZIO? Or without going "full Haskell"?
Frameless is a nice way to grab some type safety back from Spark, and features opt-in Cats integration.
-
Making the Spark DataFrame composition type safe(r)
Btw, are you familiar with the Frameless project (https://github.com/typelevel/frameless)?
I've looked at Frameless a bit and actually have an open issue on that repo. A lot of my Spark programming involves adding columns and it seems like Frameless requires a new case class every time a column is added, so it didn't seem practical for my workflows.
Valid point! Have you seen the withColumnTupled API? It returns a typed tuple instead. This seems to satisfy your use case - the dataset preserves its type and doesn't require a new case class. This is kind of what you're suggesting but without case class generation. Though not sure whether attribute labels (names) are preserved in this case. It's also unclear whether this is good enough for wide tables.
-
Recommendations for specializing in Spark (Scala)
I recommend using Frameless, which includes a Cats module. In general, I would encourage you to master “purely” functional programming first, because it’s foundational. Spark is a very specific technology, and probably not even the best in that class today—I would be very careful about trying to build a career around it.
ZparkIO
What are some alternatives?
Lantern
zio-spark - A functional wrapper around Spark to make it works with ZIO
spark-excel - A Spark plugin for reading and writing Excel files
deequ - Deequ is a library built on top of Apache Spark for defining "unit tests for data", which measure data quality in large datasets.
zio-prelude - A lightweight, distinctly Scala take on functional abstractions, with tight ZIO integration
azure-kusto-spark - Apache Spark Connector for Azure Kusto
zio-http - A next-generation Scala framework for building scalable, correct, and efficient HTTP clients and servers
bebe - Filling in the Spark function gaps across APIs
typeclassopedia - My tinkering to understand the typeclassopedia.
cats-effect - The pure asynchronous runtime for Scala
Laminar - Simple, expressive, and safe UI library for Scala.js
zio-akka-cluster - ZIO wrapper for Akka Cluster