1#include "duckdb/function/compression/compression.hpp"
2#include "duckdb/storage/segment/uncompressed.hpp"
3
4namespace duckdb {
5
6CompressionFunction UncompressedFun::GetFunction(PhysicalType type) {
7 switch (type) {
8 case PhysicalType::BOOL:
9 case PhysicalType::INT8:
10 case PhysicalType::INT16:
11 case PhysicalType::INT32:
12 case PhysicalType::INT64:
13 case PhysicalType::INT128:
14 case PhysicalType::UINT8:
15 case PhysicalType::UINT16:
16 case PhysicalType::UINT32:
17 case PhysicalType::UINT64:
18 case PhysicalType::FLOAT:
19 case PhysicalType::DOUBLE:
20 case PhysicalType::LIST:
21 case PhysicalType::INTERVAL:
22 return FixedSizeUncompressed::GetFunction(data_type: type);
23 case PhysicalType::BIT:
24 return ValidityUncompressed::GetFunction(data_type: type);
25 case PhysicalType::VARCHAR:
26 return StringUncompressed::GetFunction(data_type: type);
27 default:
28 throw InternalException("Unsupported type for Uncompressed");
29 }
30}
31
32bool UncompressedFun::TypeIsSupported(PhysicalType type) {
33 return true;
34}
35
36} // namespace duckdb
37