v.21.6Bug Fix

Fixed error when selecting from Materialized View after reattaching it to Atomic database

Fixed Table .inner_id... doesn't exist error when selecting from Materialized View after detaching it from Atomic database and attaching back. #23047 (tavplubix).