| 2750 | } // namespace detail |
| 2751 | |
| 2752 | static inline std::string TypeIdFingerprint(const DataType& type) { |
| 2753 | auto c = static_cast<int>(type.id()) + 'A'; |
| 2754 | DCHECK_GE(c, 0); |
| 2755 | DCHECK_LT(c, 128); // Unlikely to happen any soon |
| 2756 | // Prefix with an unusual character in order to disambiguate |
| 2757 | std::string s{'@', static_cast<char>(c)}; |
| 2758 | return s; |
| 2759 | } |
| 2760 | |
| 2761 | static char TimeUnitFingerprint(TimeUnit::type unit) { |
| 2762 | switch (unit) { |