Gravity affected block breaks when a block is pulled out from under it with a piston.
When pulling out a block from under a gravity affected block such as sand, the block will break instead of falling. (The second image depicts the block breaking, the log is still there, just doing that weird flash)