News for hackers. Stuff that matters.
Re:DataFusion Comet: Apache Spark Accelerator by OutOfHere on Friday May 31, 2024 @02:33PM (#40538740)
But why. Unless you need to use low-level map/reduce, just ditch Spark and use https://github.com/apache/datafusion-ballista directly. It supports Python too.
Re:DataFusion Comet: Apache Spark Accelerator by simicd on Friday May 31, 2024 @03:37PM (#40539356)
In short: Compatible with existing Spark jobs but executing them much faster. Benchmarks in the README file and docs [1] show improvements up to 3x while not even all operations are implemented yet (i.e. if an operation is not available in Comet it falls back to Spark), so there is room for further improvements. Across all TPC-H queries the total speedup is currently 1.5x, the docs state that based on datafusion's standalone performance 2x-4x is a realistic goal [1]

Haven't seen any memory consumption benchmarks but suspect that it's lower than Spark for same jobs since datafusion is designsd from the ground up to be columnar-first.

For companies spending 100s of thousands if not millions on compute this would mean substantial savings with little effort.

[1] https://datafusion.apache.org/comet/contributor-guide/benchm...

Re:DataFusion Comet: Apache Spark Accelerator by MrPowers on Friday May 31, 2024 @03:02PM (#40539029)
The OP is the original creator of Ballista, so he's well aware of the project.

Ballista is much less mature than Spark and needs a lot of work. It's awesome they're making Spark faster with Comet.

Re:DataFusion Comet: Apache Spark Accelerator by andygrove on Friday May 31, 2024 @04:21PM (#40539788)
Yes, Ballista failed to gain traction. I think that one of the challenges was that it only supported a small subset of Spark, and there was too much work involved to try and get to parity with Spark.

The Comet approach is much more pragmatic because we just add support for more operators and expressions over time and fall back to Spark for anything that is not supported yet.

Re:DataFusion Comet: Apache Spark Accelerator by threeseed on Friday May 31, 2024 @06:10PM (#40540849)
One of the challenges is that most Spark users don't care if you 2x performance.

We are in the enterprise with large cloud budgets and can simply change instance types. If you're 20x then that is a different story but then (a) you need to have feature parity and (b) need support from cloud vendors which Spark has.

Re:DataFusion Comet: Apache Spark Accelerator by spenczar5 on Friday May 31, 2024 @06:42PM (#40541092)
There seems to be a history of data technologies requiring a serious corporate sponsor. Arrow gets so much dev and marketing effort from Voltron, Spark from Databricks, etc. Did Ballista have anything’s similar? I loved the project but it never seemed to move very fast on integrating with other tools and platforms.
Re:DataFusion Comet: Apache Spark Accelerator by OutOfHere on Friday May 31, 2024 @04:35PM (#40539949)
For the longest time, searching for Ballista linked to its old archived repo that didn't even have a link to the new repo. There was no search result for the new repo. This misled people into thinking that Ballista is a dead project but it wasn't. It wasted so much opportunity.

I don't think it's a fair criticism of Ballista to say that it failed in any way. It just looks to need substantial effort to bring it on par with Spark. The performance benefits are meaningful. Ballista can then not only take the crown from Spark, but also revalidate Rust as a language.

Re:DataFusion Comet: Apache Spark Accelerator by andygrove on Friday May 31, 2024 @04:59PM (#40540166)
I wish I'd known about the search issue.

I do see a new opportunity for Ballista. By leveraging all of the Spark-compatible operators and expressions being built in Comet, it would be able to support a wider range of queries much more quickly.

Ballista already uses protobuf for sending plans to executors and Comet accepts protobuf plans (in a similar, but different format).

Re:DataFusion Comet: Apache Spark Accelerator by OutOfHere on Friday May 31, 2024 @06:26PM (#40540977)
Did Databricks sponsor Comet?
Re:DataFusion Comet: Apache Spark Accelerator by andygrove on Friday May 31, 2024 @10:52PM (#40542501)
No.
Re:DataFusion Comet: Apache Spark Accelerator by orthoxerox on Friday May 31, 2024 @03:25PM (#40539256)
Because it's a drop-in replacement that lets you (theoretically) spend O(1) development effort on speeding up your Spark jobs instead of O(N).

I say theoretically, because I have no idea how Comet works with the memory limits on Spark executors. If you have to rebalance the memory between regular memory and memory overhead or provision some off-heap memory for Comet, then the migration won't be so simple.

Re:DataFusion Comet: Apache Spark Accelerator by nicornk on Saturday June 01, 2024 @12:39AM (#40542923)
and this is unfortunately the case for Velox.
Re:DataFusion Comet: Apache Spark Accelerator by _zoltan_ on Saturday June 01, 2024 @01:20PM (#40547488)
care to elaborate?
Re:DataFusion Comet: Apache Spark Accelerator by necubi on Friday May 31, 2024 @02:51PM (#40538909)
Many companies have 100k+ of lines of Spark code. It's not trivial to rewrite all of that in another query framework.
Re:DataFusion Comet: Apache Spark Accelerator by OutOfHere on Friday May 31, 2024 @02:57PM (#40538958)
Following that logic, we should have stuck with C/C++ for everything. /s
Re:DataFusion Comet: Apache Spark Accelerator by MrPowers on Friday May 31, 2024 @03:05PM (#40539052)
Lots of Spark workloads are executed with the C++ Photon engine on the Databricks platform, so we ironically have partially moved back to C++. Disclosure: I work for Databricks.
Re:DataFusion Comet: Apache Spark Accelerator by OutOfHere on Friday May 31, 2024 @03:21PM (#40539211)
The continued use of C++ is not exactly something to be proud of, although in this case at least it presumably is for short-running jobs, not for long-running services that accumulate leaks.
Re:DataFusion Comet: Apache Spark Accelerator by _bohm on Friday May 31, 2024 @05:05PM (#40540226)
There is a ton of reliable load-bearing software out there written in C++. I don't think the fact that a piece of software is written in C++ is enough to presume that it has memory leaks.
Re:DataFusion Comet: Apache Spark Accelerator by threeseed on Friday May 31, 2024 @06:12PM (#40540867)
Python would be just another PHP level language if it wasn't for C++.

It's what powers all of the DE/ML/AI libraries.

Re:DataFusion Comet: Apache Spark Accelerator by threeseed on Friday May 31, 2024 @06:07PM (#40540821)
There is an entire ecosystem of libraries for Spark built up over years.

I want to be able to connect to interact with the full services from GCS, Azure, AWS, OpenAI etc none of which DataFusion supports.

As well as use libraries such as SynapseML, SparkNLP etc.

And do all of this with full support from my cloud provider.