[MINOR] Fix metadata updating bug by impl equals/hashCode

Fix metadata updating bug by impl equals/hashCode

Author: Hao Chen <hao@apache.org>

Closes #868 from haoch/FixMetadataUpdate.
4 files changed