In current implementation, Row's equals uses Objects.deepEquals, which only deeply compare array. For example, List will not be deeply compared because this function will just call List.equals.
Map might not have the correct equals as well.
If there is no other option, we might need to have a customized deep equal to handle all cases we have.
Imported from Jira BEAM-5868. Original Jira may contain additional context.
Reported by: amaliujia.