def test_schema(self): cols = ColumnSet([("foo", UInt(8)), ("bar", Nested([("qux:mux", String())]))]) assert cols.for_schema() == "foo UInt8, bar Nested(`qux:mux` String)" assert cols["foo"].type == UInt(8) assert cols["bar.qux:mux"].type == Array(String())
def test_schema(self): cols = ColumnSet([('foo', UInt(8)), ('bar', Nested([('qux:mux', String())]))]) assert cols.for_schema() == 'foo UInt8, bar Nested(`qux:mux` String)' assert cols['foo'].type == UInt(8) assert cols['bar.qux:mux'].type == Array(String())