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

Function SwappableTypes

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

Source from the content-addressed store, hash-verified

4001}
4002
4003DataTypeVector SwappableTypes() {
4004 return DataTypeVector{int8(),
4005 int16(),
4006 int32(),
4007 int64(),
4008 uint8(),
4009 uint16(),
4010 uint32(),
4011 uint64(),
4012 decimal32(8, 1),
4013 decimal64(16, 2),
4014 decimal128(19, 4),
4015 decimal256(37, 8),
4016 timestamp(TimeUnit::MICRO, ""),
4017 time32(TimeUnit::SECOND),
4018 time64(TimeUnit::NANO),
4019 date32(),
4020 date64(),
4021 day_time_interval(),
4022 month_interval(),
4023 month_day_nano_interval(),
4024 binary(),
4025 utf8(),
4026 large_binary(),
4027 large_utf8(),
4028 list(int16()),
4029 large_list(int16()),
4030 list_view(int16()),
4031 large_list_view(int16()),
4032 dictionary(int16(), utf8())};
4033}
4034
4035TEST(TestSwapEndianArrayData, RandomData) {
4036 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