Unions `other` into `typ`, returning a list of differences on failure This function returns an empty list when `typ` and `other` are a union
(
typ: &mut ReprColumnType,
other: &ReprColumnType,
)
| 507 | /// |
| 508 | /// This function returns an empty list when `typ` and `other` are a union |
| 509 | pub fn column_union( |
| 510 | typ: &mut ReprColumnType, |
| 511 | other: &ReprColumnType, |
| 512 | ) -> Vec<ReprColumnTypeDifference> { |
| 513 | let diffs = scalar_union(&mut typ.scalar_type, &other.scalar_type); |
| 514 | |
| 515 | if diffs.is_empty() { |
| 516 | typ.nullable |= other.nullable; |
| 517 | } |
| 518 | |
| 519 | diffs |
| 520 | } |
| 521 | |
| 522 | /// Returns true when it is safe to treat a `sub` row as an `sup` row |
| 523 | /// |
no test coverage detected