/
mysql_structured_report.json
173 lines (173 loc) · 5.01 KB
/
mysql_structured_report.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"summary": {
"text": "Schema conversion: POOR (29% of 17006 columns mapped cleanly) + some missing primary keys.\nData conversion: POOR (66% of 6000 rows written to Spanner).\n",
"rating": "POOR",
"dbName": "sampleDB"
},
"isSharded": false,
"ignoredStatements": null,
"conversionMetadata": [
{
"conversionType": "Schema",
"duration": 0
},
{
"conversionType": "Data",
"duration": 0
}
],
"migrationType": "SCHEMA_AND_DATA",
"statementStats": {
"driverName": "mysqldump",
"statementStats": [
{
"statement": "CreateTableStmt",
"schema": 5,
"data": 0,
"skip": 0,
"error": 0,
"totalCount": 0
}
]
},
"nameChanges": null,
"tableReports": [
{
"srcTableName": "bad_schema",
"spTableName": "bad_schema",
"schemaReport": {
"rating": "POOR",
"pkMissing": true,
"issues": 2,
"warnings": 2,
"totalColumns": 2
},
"dataReport": {
"rating": "OK",
"badRows": 60,
"totalRows": 1000,
"dryRun": false
},
"issues": [
{
"issueType": "Warnings",
"issueList": [
{
"category": "STORAGE_WARNING",
"description": "Table 'bad_schema': Some columns will consume more storage in Spanner e.g. for column 'a', source DB type float is mapped to Spanner data type float64"
},
{
"category": "MISSING_PRIMARY_KEY",
"description": "Column 'synth_id' was added because table 'bad_schema' didn't have a primary key. Spanner requires a primary key for every table"
}
]
}
]
},
{
"srcTableName": "default_value",
"spTableName": "default_value",
"schemaReport": {
"rating": "EXCELLENT",
"pkMissing": false,
"issues": 1,
"warnings": 0,
"totalColumns": 2
},
"dataReport": {
"rating": "NONE",
"badRows": 0,
"totalRows": 0,
"dryRun": false
},
"issues": [
{
"issueType": "Note",
"issueList": [
{
"category": "MISSING_DEFAULT_VALUE_CONSTRAINTS",
"description": "Some columns have default values which Spanner migration tool does not migrate. Please add the default constraints manually after the migration is complete for table 'default_value' e.g. column 'b'"
}
]
}
]
},
{
"srcTableName": "excellent_schema",
"spTableName": "excellent_schema",
"schemaReport": {
"rating": "EXCELLENT",
"pkMissing": false,
"issues": 0,
"warnings": 0,
"totalColumns": 2
},
"dataReport": {
"rating": "NONE",
"badRows": 0,
"totalRows": 0,
"dryRun": false
},
"issues": null
},
{
"srcTableName": "foreign_key",
"spTableName": "foreign_key",
"schemaReport": {
"rating": "EXCELLENT",
"pkMissing": false,
"issues": 0,
"warnings": 0,
"totalColumns": 2
},
"dataReport": {
"rating": "NONE",
"badRows": 0,
"totalRows": 0,
"dryRun": false
},
"issues": null
},
{
"srcTableName": "no_pk",
"spTableName": "no_pk",
"schemaReport": {
"rating": "POOR",
"pkMissing": true,
"issues": 2,
"warnings": 2,
"totalColumns": 3
},
"dataReport": {
"rating": "POOR",
"badRows": 2000,
"totalRows": 5000,
"dryRun": false
},
"issues": [
{
"issueType": "Warnings",
"issueList": [
{
"category": "STORAGE_WARNING",
"description": "Table 'no_pk': Some columns will consume more storage in Spanner e.g. for column 'b', source DB type int(11) is mapped to Spanner data type int64"
},
{
"category": "MISSING_PRIMARY_KEY",
"description": "Column 'synth_id' was added because table 'no_pk' didn't have a primary key. Spanner requires a primary key for every table"
}
]
}
]
}
],
"unexpectedConditions": {
"Reparsed": 0,
"unexpectedConditions": [
{
"count": 5,
"condition": "Testing unexpected messages"
}
]
}
}