fix a inconsistency in the sql test for join swap