示例#1
0
文件: api.py 项目: xmnlab/ibis
def compile(expr, params=None):
    """
    Force compilation of expression as though it were an expression depending
    on BigQuery. Note you can also call expr.compile()

    Returns
    -------
    compiled : string
    """
    from ibis.bigquery.compiler import to_sql
    return to_sql(expr, dialect.make_context(params=params))
示例#2
0
def compile(expr, params=None):
    """Compile an expression for BigQuery.

    Returns
    -------
    compiled : str

    See Also
    --------
    ibis.expr.types.Expr.compile

    """
    from ibis.bigquery.compiler import to_sql

    return to_sql(expr, dialect.make_context(params=params))
示例#3
0
文件: api.py 项目: cloudera/ibis
def compile(expr, params=None):
    """Compile an expression for BigQuery.

    Returns
    -------
    compiled : str

    See Also
    --------
    ibis.expr.types.Expr.compile

    """
    from ibis.bigquery.compiler import to_sql

    return to_sql(expr, dialect.make_context(params=params))