| 1 | #pragma once | 
|---|---|
| 2 | |
| 3 | #include <DataTypes/IDataType.h> | 
| 4 | |
| 5 | |
| 6 | namespace DB | 
| 7 | { | 
| 8 | |
| 9 | /** Get data type that covers all possible values of passed data types. | 
| 10 | * If there is no such data type, throws an exception. | 
| 11 | * | 
| 12 | * Examples: least common supertype for UInt8, Int8 - Int16. | 
| 13 | * Examples: there is no least common supertype for Array(UInt8), Int8. | 
| 14 | */ | 
| 15 | DataTypePtr getLeastSupertype(const DataTypes & types); | 
| 16 | |
| 17 | } | 
| 18 | 
