Esempio n. 1
0
def partial_function(body: str, constants: Sequence[Tuple[str,
                                                          Any]]) -> Expression:
    parsed = parse_clickhouse_function(body)
    constants_lookup = {
        name: Literal(None, value)
        for (name, value) in constants
    }
    return replace_in_expression(parsed, constants_lookup)
Esempio n. 2
0
def simple_function(body: str) -> Expression:
    return parse_clickhouse_function(body)