liyafan82 opened a new pull request #7248: URL: https://github.com/apache/arrow/pull/7248
In this PR, we provide the validateFull functionalities, and refactor the validate logic. We separate the validation logic into 3 visitors: 1. Type validation: validate vector type information (O(1) time complexity). 2. Buffer validation: validate buffer count/size, etc. (O(1) time complexity). 3. Data validation: validate content of data buffers. (O(n) time complexity). For the `validate` method, we perform validations 1 and 2, while for the `validateFull` method, we perform validations 1, 2, and 3. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org