| 159 | } |
| 160 | |
| 161 | bool SchemaEvolution::needConvert(const Type& fileType) const { |
| 162 | auto _readType = getReadType(fileType); |
| 163 | if (_readType == &fileType) { |
| 164 | return false; |
| 165 | } |
| 166 | // it does not check valid here as verified by buildConversion() |
| 167 | return checkConversion(*_readType, fileType).needConvert; |
| 168 | } |
| 169 | |
| 170 | inline bool isPrimitive(const Type* type) { |
| 171 | auto kind = type->getKind(); |