We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24cf982 commit 910e943Copy full SHA for 910e943
python/pyarrow/tests/test_schema.py
@@ -69,3 +69,20 @@ def test_schema(self):
69
foo: int32
70
bar: string
71
baz: list<item: int8>"""
72
+
73
+ def test_schema_equals(self):
74
+ fields = [
75
+ A.field('foo', A.int32()),
76
+ A.field('bar', A.string()),
77
+ A.field('baz', A.list_(A.int8()))
78
+ ]
79
80
+ sch1 = A.schema(fields)
81
+ print(dir(sch1))
82
+ sch2 = A.schema(fields)
83
+ assert sch1.equals(sch2)
84
85
+ del fields[-1]
86
+ sch3 = A.schema(fields)
87
+ assert not sch1.equals(sch3)
88
0 commit comments