fn binary_array_to_dictionary( input: &BinaryArray, ) -> Result<DictionaryArray<UInt32Type>>
Converts a sorted [BinaryArray] to [DictionaryArray].