MCPcopy Create free account
hub / github.com/apache/arrow / SwappableTypes

Function SwappableTypes

cpp/src/arrow/array/array_test.cc:4080–4110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4078}
4079
4080DataTypeVector SwappableTypes() {
4081 return DataTypeVector{int8(),
4082 int16(),
4083 int32(),
4084 int64(),
4085 uint8(),
4086 uint16(),
4087 uint32(),
4088 uint64(),
4089 decimal32(8, 1),
4090 decimal64(16, 2),
4091 decimal128(19, 4),
4092 decimal256(37, 8),
4093 timestamp(TimeUnit::MICRO, ""),
4094 time32(TimeUnit::SECOND),
4095 time64(TimeUnit::NANO),
4096 date32(),
4097 date64(),
4098 day_time_interval(),
4099 month_interval(),
4100 month_day_nano_interval(),
4101 binary(),
4102 utf8(),
4103 large_binary(),
4104 large_utf8(),
4105 list(int16()),
4106 large_list(int16()),
4107 list_view(int16()),
4108 large_list_view(int16()),
4109 dictionary(int16(), utf8())};
4110}
4111
4112TEST(TestSwapEndianArrayData, RandomData) {
4113 random::RandomArrayGenerator rng(42);

Callers 1

TESTFunction · 0.85

Calls 15

decimal32Function · 0.85
decimal64Function · 0.85
decimal256Function · 0.85
day_time_intervalFunction · 0.85
month_intervalFunction · 0.85
month_day_nano_intervalFunction · 0.85
listFunction · 0.85
large_listFunction · 0.85
list_viewFunction · 0.85
large_list_viewFunction · 0.85
decimal128Function · 0.50
timestampFunction · 0.50

Tested by

no test coverage detected