zhangshenghang opened a new issue, #10204: URL: https://github.com/apache/seatunnel/issues/10204
### Search before asking - [x] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement. ### Description ## Background Currently in SeaTunnel, after a job finishes, users can only rely on logs or downstream systems to check whether the data “looks like” it was synchronized successfully. However, the framework itself cannot confirm whether the data in the source and the target are truly consistent. In scenarios with high data quality requirements (e.g., accounting, risk control, auditing), relying solely on a job’s success status is not sufficient. Explicit data validation is needed after synchronization completes. ## Requirements We hope SeaTunnel can support a **Data Validation** capability that, after a synchronization job completes, automatically or on-demand checks consistency between the source and target data, including but not limited to: * Support enabling/disabling data validation via configuration. * Support basic **row count validation** (source row count vs. sink row count). * Support extensible validation approaches, such as: * **Primary key / unique key coverage validation** (check whether the primary key set is consistent). * Field-based **hash / checksum validation** (e.g., sum or hash comparisons for key fields). * **Sampling validation** (compare partial samples in large-scale data scenarios). * Validation results should be centrally managed and reported by the framework, including: * **Validation passed:** mark the job as “sync succeeded and data validation passed”. * **Validation failed:** configurable strategies, such as: * Mark the job as failed. * Alert only, without affecting the job success status. * Write the diff data (extra / missing / inconsistent records) to an error table or error output for further investigation. ### Usage Scenario _No response_ ### Related issues _No response_ ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
