MCPcopy Create free account
hub / github.com/apache/fory / create_foo_schema

Function create_foo_schema

python/pyfory/tests/test_cross_language.py:85–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85def create_foo_schema():
86 from pyfory.format import field, int32, utf8, list_, map_, struct, schema
87
88 bar_fields = [
89 field("f1", int32()),
90 field("f2", utf8()),
91 ]
92 foo_schema = schema(
93 [
94 field("f1", int32()),
95 field("f2", utf8()),
96 field("f3", list_(utf8())),
97 field("f4", map_(utf8(), int32())),
98 field("f5", struct(bar_fields)),
99 ]
100 )
101 return foo_schema
102
103
104@dataclass

Callers 2

test_record_batchFunction · 0.85

Calls 5

utf8Function · 0.85
schemaFunction · 0.85
structFunction · 0.85
fieldFunction · 0.50
int32Function · 0.50

Tested by

no test coverage detected