Beispiel #1
0
def test_concat():
    exprs = [ibis.literal(1).name('a'), ibis.literal(2).name('b')]
    exprs2 = [ibis.literal(3).name('c'), ibis.literal(4).name('d')]

    list1 = ibis.expr_list(exprs)
    list2 = ibis.expr_list(exprs2)

    result = list1.concat(list2)
    expected = ibis.expr_list(exprs + exprs2)
    assert_equal(result, expected)
Beispiel #2
0
def test_concat():
    exprs = [ibis.literal(1).name('a'), ibis.literal(2).name('b')]
    exprs2 = [ibis.literal(3).name('c'), ibis.literal(4).name('d')]

    list1 = ibis.expr_list(exprs)
    list2 = ibis.expr_list(exprs2)

    result = list1.concat(list2)
    expected = ibis.expr_list(exprs + exprs2)
    assert_equal(result, expected)
Beispiel #3
0
    def test_concat(self):
        exprs = [ibis.literal(1).name("a"), ibis.literal(2).name("b")]

        exprs2 = [ibis.literal(3).name("c"), ibis.literal(4).name("d")]

        list1 = ibis.expr_list(exprs)
        list2 = ibis.expr_list(exprs2)

        result = list1.concat(list2)
        expected = ibis.expr_list(exprs + exprs2)
        assert_equal(result, expected)
Beispiel #4
0
def expr():
    exprs = [ibis.literal(1).name('a'), ibis.literal(2).name('b')]

    return ibis.expr_list(exprs)
Beispiel #5
0
    def setUp(self):
        exprs = [ibis.literal(1).name('a'),
                 ibis.literal(2).name('b')]

        self.expr = ibis.expr_list(exprs)
Beispiel #6
0
def expr():
    exprs = [ibis.literal(1).name('a'), ibis.literal(2).name('b')]

    return ibis.expr_list(exprs)
Beispiel #7
0
def expr():
    exprs = [ibis.literal(1).name("a"), ibis.literal(2).name("b")]

    return ibis.expr_list(exprs)
Beispiel #8
0
    def setUp(self):
        exprs = [ibis.literal(1).name("a"), ibis.literal(2).name("b")]

        self.expr = ibis.expr_list(exprs)