Equal compares the types recursively and returns true if they are equal. Two types are equal if: - both types have the same kind - array types have elements whose types are equal - map types have keys and elements whose types are equal - objects have the same attribute names and the attribute types
(dt, dt2 DataType)
| 286 | // as the former may return true for two user types with different names and |
| 287 | // thus with different hash values. |
| 288 | func Equal(dt, dt2 DataType) bool { |
| 289 | return Hash(dt, false, true, true) == Hash(dt2, false, true, true) |
| 290 | } |
| 291 | |
| 292 | // DataType implementation |
| 293 |