| 380 | // Utilities for Field::MergeWith |
| 381 | |
| 382 | std::shared_ptr<DataType> MakeBinary(const DataType& type) { |
| 383 | switch (type.id()) { |
| 384 | case Type::BINARY: |
| 385 | case Type::STRING: |
| 386 | return binary(); |
| 387 | case Type::LARGE_BINARY: |
| 388 | case Type::LARGE_STRING: |
| 389 | return large_binary(); |
| 390 | default: |
| 391 | Unreachable("Hit an unknown type"); |
| 392 | } |
| 393 | return nullptr; |
| 394 | } |
| 395 | |
| 396 | Result<std::shared_ptr<DataType>> WidenDecimals( |
| 397 | const std::shared_ptr<DataType>& promoted_type, |
no test coverage detected