[SPARK-3861][SQL] Avoid rebuilding hash tables for broadcast joins on each partition

Will that cause too many `CompactBuffer` object created if there are so many duplicated record in stream side with single match in build side? Or the `GeneralHashedRelation` performs great enough?