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

Function TEST

cpp/src/arrow/integration/json_integration_test.cc:792–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792TEST(TestJsonSchemaWriter, FlatTypes) {
793 std::vector<std::shared_ptr<Field>> fields = {
794 field("f0", int8()),
795 field("f1", int16(), false),
796 field("f2", int32()),
797 field("f3", int64(), false),
798 field("f4", uint8()),
799 field("f5", uint16()),
800 field("f6", uint32()),
801 field("f7", uint64()),
802 field("f8", float32()),
803 field("f9", float64()),
804 field("f10", utf8()),
805 field("f11", binary()),
806 field("f12", list(int32())),
807 field("f13", struct_({field("s1", int32()), field("s2", utf8())})),
808 field("f14", date32()),
809 field("f15", date64()),
810 field("f16", timestamp(TimeUnit::NANO)),
811 field("f17", time64(TimeUnit::MICRO)),
812 field("f18",
813 dense_union({field("u1", int8()), field("u2", time32(TimeUnit::MILLI))},
814 {0, 1})),
815 field("f19", large_list(uint8())),
816 field("f20", null()),
817 field("f21", run_end_encoded(int16(), utf8())),
818 field("f22", run_end_encoded(int32(), utf8())),
819 field("f23", run_end_encoded(int64(), utf8())),
820 field("f24", list_view(int32())),
821 field("f25", large_list_view(uint8())),
822 };
823
824 auto schema = ::arrow::schema(fields);
825 TestSchemaRoundTrip(schema);
826}
827
828template <typename T>
829void PrimitiveTypesCheckOne() {

Callers

nothing calls this directly

Calls 15

listFunction · 0.85
struct_Function · 0.85
dense_unionFunction · 0.85
large_listFunction · 0.85
run_end_encodedFunction · 0.85
list_viewFunction · 0.85
large_list_viewFunction · 0.85
TestSchemaRoundTripFunction · 0.85
TestArrayRoundTripFunction · 0.85
ArrayFromJSONFunction · 0.85
GetBitmapFromVectorFunction · 0.85
WrapFunction · 0.85

Tested by

no test coverage detected