In my understanding, when Spark selects Broadcast Join, The side with a smaller physical data size will be broadcasted,
but today, use the same sql and table data, I've come across the opposite example, the pic as follow
the smaller table was broadcasted

the bigger table was broadcasted

so I want to know how spark select the broadcast side, can anyone give me some help ?