Coury Ditch
07/22/2025, 7:34 PMjay
07/22/2025, 7:34 PMjay
07/22/2025, 7:34 PMCoury Ditch
07/22/2025, 7:34 PMjay
07/22/2025, 7:34 PMjay
07/22/2025, 7:35 PMCoury Ditch
07/22/2025, 7:39 PMjay
07/22/2025, 7:39 PMCoury Ditch
07/22/2025, 7:39 PMjay
07/22/2025, 7:40 PMdf.explain() it prints a plan we can look atCoury Ditch
07/22/2025, 7:43 PMCoury Ditch
07/22/2025, 7:46 PMNumber of partitions = 1 . Update: These dataframes are associated with small dataframes used in joins, each of which should be getting broadcasted.Coury Ditch
07/22/2025, 8:04 PMColin Ho
07/22/2025, 8:28 PMdf.explain(True)Coury Ditch
07/22/2025, 8:40 PMCoury Ditch
07/22/2025, 11:18 PMmain_data.filter(F.col("date") >= F.lit(START_DATE))
.filter(F.col("date") <= F.lit(END_DATE))
.join(other_data_df, on="date", how="inner")
.select("date", "hour", "other_data_col")
.drop_duplicates()
2025-07-22 23:04:43.103 | INFO | __main__:<module>:55 - Starting daft-ray engine
2025-07-22 23:10:33.641 | INFO | __main__:<module>:72 - Time taken: 350.5385718345642 seconds in daft-ray
2025-07-22 23:11:05.556 | INFO | __main__:<module>:55 - Starting daft-native engine
2025-07-22 23:11:06.793 | INFO | __main__:<module>:72 - Time taken: 1.23630952835083 seconds in daft-native
2025-07-22 23:11:35.892 | INFO | __main__:<module>:55 - Starting spark engine
2025-07-22 23:11:49.467 | INFO | __main__:<module>:72 - Time taken: 13.574950456619263 seconds in spark
I've tried both daft.read_parquet(table_path, hive_partitioning=True) and daft.read_iceberg(...) . Both of those work with Daft native, but so far daft w/ ray has only been successful w/ read_parquet, it is very very slow w/ read_iceberg to the point where I just stop the process after 10 mins.Coury Ditch
07/22/2025, 11:20 PMCoury Ditch
07/22/2025, 11:20 PMexplain(True)) for the above df ☝️Coury Ditch
07/22/2025, 11:20 PMColin Ho
07/22/2025, 11:24 PMread_parquet and read_iceberg ?Coury Ditch
07/22/2025, 11:52 PMColin Ho
07/23/2025, 12:07 AMread_icebergCoury Ditch
07/23/2025, 3:02 AMColin Ho
07/23/2025, 3:41 PMCoury Ditch
07/23/2025, 4:21 PMCoury Ditch
07/23/2025, 6:02 PMrepartition
Failed to build distributed plan, falling back to regular execution. Error: DaftError::ValueError Cannot translate logical plan: Repartition: Scheme = Random, Num partitions = Some(100), Stats = { Approx num rows = 16,048,421, Approx size bytes = 124.37 MiB, Accumulated selectivity = 1.00 } into stages
If I remove repartition that error goes away, but of course the job is very slow again.Colin Ho
07/23/2025, 6:05 PMRepartition: Scheme = Random . So it falls back to using the old ray runner.Coury Ditch
07/23/2025, 6:10 PMScheme = Random occurs when you use a numerical repartition value df.repartition(72), as opposed to a column df.repartition(None, "date")?Colin Ho
07/23/2025, 6:11 PMdf.repartition(None, "date") should perform a hash-based repartition, which is currently supported in the new runner.Colin Ho
07/23/2025, 6:12 PMdf.repartition(72, "date")Coury Ditch
07/23/2025, 6:19 PMdf.repartition(72, "date"), though this results in even slower performance than not partitioning at all. I'm not sure I understand what providing a number and a column is doing, searching through the docs atm but can't find anything describing what the behavior will be when both are provided.Colin Ho
07/23/2025, 6:27 PMdf.repartition(72, "date"), what's essentially happening is the data will be split into 72 partitions based on the hash of the "date" column. Basically, for each row, the new partition it belongs to is hash(date) % 72 .
What could be happening is that the values of date are skewed, leading to inbalanced partitions.can cai
08/22/2025, 5:07 AMColin Ho
08/22/2025, 6:47 PMcan cai
08/25/2025, 6:17 AM