#10206 adds an unsafe skip-validation option to arrow-flight decoding. However, Flight dictionary messages still use arrow_ipc::reader::read_dictionary, which currently constructs a fresh UnsafeFlag::new() and therefore continues to validate dictionary payloads even when FlightDataDecoder::with_skip_validation has been used.
This means dictionary-encoded Flight streams do not fully benefit from the skip-validation path: dictionary values may still pay validation costs, while later record batches use the skipped validation setting via RecordBatchDecoder::with_skip_validation(...).read_record_batch().
skip_validationto arrow-flight) #10206#10206 adds an unsafe skip-validation option to arrow-flight decoding. However, Flight dictionary messages still use arrow_ipc::reader::read_dictionary, which currently constructs a fresh UnsafeFlag::new() and therefore continues to validate dictionary payloads even when FlightDataDecoder::with_skip_validation has been used.
This means dictionary-encoded Flight streams do not fully benefit from the skip-validation path: dictionary values may still pay validation costs, while later record batches use the skipped validation setting via RecordBatchDecoder::with_skip_validation(...).read_record_batch().