Incorrect order of the values in the structKey (they were read in the order of the columns and not in the join order)
If you have multiple relationships that use the column with the same name, the value in the structKey would get duplicated. Typical example partitioned tables with same partition column (year)
Fixed 2 issues.