コード例 #1
0
    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())
コード例 #2
0
    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())