[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-17 (世界標準時間)。"],[],[],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."]]