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

Function SwappableTypes

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

Source from the content-addressed store, hash-verified

3951}
3952
3953DataTypeVector SwappableTypes() {
3954 return DataTypeVector{int8(),
3955 int16(),
3956 int32(),
3957 int64(),
3958 uint8(),
3959 uint16(),
3960 uint32(),
3961 uint64(),
3962 decimal32(8, 1),
3963 decimal64(16, 2),
3964 decimal128(19, 4),
3965 decimal256(37, 8),
3966 timestamp(TimeUnit::MICRO, ""),
3967 time32(TimeUnit::SECOND),
3968 time64(TimeUnit::NANO),
3969 date32(),
3970 date64(),
3971 day_time_interval(),
3972 month_interval(),
3973 month_day_nano_interval(),
3974 binary(),
3975 utf8(),
3976 large_binary(),
3977 large_utf8(),
3978 list(int16()),
3979 large_list(int16()),
3980 list_view(int16()),
3981 large_list_view(int16()),
3982 dictionary(int16(), utf8())};
3983}
3984
3985TEST(TestSwapEndianArrayData, RandomData) {
3986 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