This looks like an execution bug rather than a problem with the SQL: the query is tiny, and the error is from hash-table batch extension. The build hash is from October 2024, so first try the same query on the latest 25.2 patch or a newer supported release. If it still fails, attach the job profile and coordinator log around the failure; those should show which operator is throwing the exception.
This looks like an execution bug rather than a problem with the SQL: the query is tiny, and the error is from hash-table batch extension. The build hash is from October 2024, so first try the same query on the latest 25.2 patch or a newer supported release. If it still fails, attach the job profile and coordinator log around the failure; those should show which operator is throwing the exception.