[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-05。"],[],[],null,["# Validate your data migration\n\nData validation is the process of comparing data from both the source and the\ndestination database tables to ensure they match.\n\nThe [Data Validation Tool (DVT)](https://pypi.org/project/google-pso-data-validator/#:%7E:text=The%20Data%20Validation%20Tool%20is,with%20multi%2Dleveled%20validation%20functions)\nis an open source tool that can connect to data stores and perform checks\nbetween your source database and Spanner. We recommend using it to perform\nbasic validations as a part of your migration, such as the following:\n\n- Check that all tables were created and that all schema mappings are correct.\n- Match the total number of rows for each table.\n- Extract random rows to verify consistency.\n- Validate your columns, for example, use `count`, `sum`, `avg`, `min`, `max`, or `group by`.\n- Compare any cyclic redundancy checks or hash functions at the row level.\n\nTo perform more specific validations, build custom checks during migration."]]