def add_operation(op, func_name, db): """ Registers the given operation within the Ibis SQL translation toolchain Parameters ---------- op: operator class name: used in issuing statements to SQL engine database: database the relevant operator is registered to """ full_name = '{0}.{1}'.format(db, func_name) arity = len(op.input_type.types) _expr._operation_registry[op] = _expr._fixed_arity_call(full_name, arity)
def add_impala_operation(op, func_name, db): full_name = '{0}.{1}'.format(db, func_name) arity = len(op.input_type.types) _expr._operation_registry[op] = _expr._fixed_arity_call(full_name, arity)