Hello Folks, I am having trouble optimising Dart q...
# troubleshooting
s
Hello Folks, I am having trouble optimising Dart queries on the latest
34.0.0
version: • I have a query with a single JOIN and I keep running into
Not enough memory
issues (see 🧵 for the query, datasource and task run detail). • The query fails in the
sortMergeJoin
phase. We have two historical pods with 64vCPU and 512gigs of memory with -Xmx=107g. • From the Dart documentation its not clear how I can capacity plan for this query or if its possible to run this query successfully at all. ◦ does Dart spill to disk in the join phase? Would that potentially be the problem here?
Our
left
datasource is time partitioned and clustered on the join key, with about one-week of data. Our
right
datasource is not time partitioned but clustered on the join key. The
right
datasource is around ~50g and left is around 1.2TB. The join key has about 100M cardinality.
Happy to provide more details.