def test_mixed_arity(table): what = ["bar", table.g, "foo"] expr = api.as_value_expr(what) values = expr.op().values assert isinstance(values[1], ir.StringColumn) # it works! repr(expr)
def test_literal_list(): what = [1, 2, 1000] expr = api.as_value_expr(what) assert isinstance(expr, ir.ColumnExpr) assert isinstance(expr.op(), ir.ValueList) assert isinstance(expr.op().values[2], ir.Int16Scalar) # it works! repr(expr)
def test_literal_list(self): what = [1, 2, 1000] expr = api.as_value_expr(what) assert isinstance(expr, ir.ArrayExpr) assert isinstance(expr.op(), ir.ValueList) assert isinstance(expr.op().values[2], ir.Int16Scalar) # it works! repr(expr)
def test_mixed_arity(self): table = self.table what = ["bar", table.g, "foo"] expr = api.as_value_expr(what) values = expr.op().values assert isinstance(values[1], ir.StringArray) # it works! repr(expr)