mwc360
Re:Should You Ditch Spark for DuckDB or Polars?
on Monday December 16, 2024 @06:34PM (#42436712)
OSS Delta support deletion vectors. The problem is that the OSS Deltalake (based on Delta-rs) python library does not and this prevents engines like DuckDB and Polars from writing to suck tables. I'm pretty sure DV is in OSS since 3.1
Re:Should You Ditch Spark for DuckDB or Polars?
on Monday December 16, 2024 @01:19PM (#42433684)
Very cool! This seems like fantastic functionality and would make it super easy to migrate small Spark workloads to DuckDB :)
Re:Should You Ditch Spark for DuckDB or Polars?
on Monday December 16, 2024 @12:32PM (#42433182)
Ritchie - thx for graciously correcting some things I got wrong, will get it corrected!
Re:Should You Ditch Spark for DuckDB or Polars?
on Monday December 16, 2024 @10:06AM (#42431647)
FYI I had V-Order and Optimzed Write disabled in the benchmark. The only wrote diff was that I enabled deletion vectors in Spark since it’s supported which the other two don’t.
Re:Should You Ditch Spark for DuckDB or Polars?
on Monday December 16, 2024 @01:32AM (#42428504)
Author here: that’s exactly what I was trying to communicate but you said it better :)
Re:Should You Ditch Spark for DuckDB or Polars?
on Monday December 16, 2024 @01:31AM (#42428497)
Miles Cole here: I’d love to see Daft on Ray become more widely used. Same Dataframe API and run it in either single or multi-machine mode. The only thing I don’t love about it today is that their marketing is a bit misleading. Daft is distributed VIA Ray, Daft itself is not distributed.
Re:Should You Ditch Spark for DuckDB or Polars?
on Monday December 16, 2024 @01:25AM (#42428461)
Author of the blog here: fair point. Pretty much every published benchmark has an agenda that ultimately skews the conclusion. I did my best here to be impartial, I.e I fully designed the benchmark and each test prior to running code on any engine to mimic typical ELT demands w/o having the opportunity to optimize Spark since I know it well.
Re:Should You Ditch Spark for DuckDB or Polars?
on Monday December 16, 2024 @01:21AM (#42428444)
Miles Cole here… thx for the correction, another reader just notes this as well. I’ll get this corrected tomorrow and possibly retest after verifying I have spill set up. Thx!
Re:Should You Ditch Spark for DuckDB or Polars?
on Monday December 16, 2024 @01:18AM (#42428432)
Hi - Miles Cole here… I used lazy APIs where available. I.e. everything up to write_delta() is lazy in the Polars (Mod) variant.
Yeah I was debating whether to share all of the source code. I may share a portion of it soon.