abstract the logic of `scankey change attribute num to index colnumber` to change_sk_attno_to_index_column_num, which is a staticinline function.
-- RegardsJunwang Zhao