Yes, I only see this error if the map key is an entity. The join to the map key type's table seems to be missing in this case.