v.24.8Backward Incompatible Changes

Fix Logical Errors with Buffer in Distributed Destination Tables

Fix logical errors with storage Buffer used with distributed destination table. It's a backward incompatible change: queries using Buffer with a distributed destination table may stop working if the table appears more than once in the query (e.g., in a self-join). #67015 (vdimir).