My goal is to hide the "child shape" part which is outside the "parent shape". See below the image, the green shape outside the black shape should not be seen.
The problem is that after I clicked the "create clipping mask" instead of hiding the child shape that is outside the parent shape, the parent shape vanished. This is what it looks like after "create clipping mask"
Reference: