()
| 108 | |
| 109 | |
| 110 | def foo_schema(): |
| 111 | bar_struct = pa.struct([("f1", pa.int32()), ("f2", pa.string())]) |
| 112 | return pa.schema( |
| 113 | [ |
| 114 | ("f1", pa.int32()), |
| 115 | ("f2", pa.string()), |
| 116 | ("f3", pa.list_(pa.string())), |
| 117 | ("f4", pa.map_(pa.string(), pa.int32())), |
| 118 | ("f5", pa.list_(pa.int32())), |
| 119 | ("f6", pa.int32()), |
| 120 | pa.field("f7", bar_struct, metadata={"cls": fory.get_qualified_classname(Bar)}), |
| 121 | ], |
| 122 | metadata={"cls": fory.get_qualified_classname(Foo)}, |
| 123 | ) |