Пример #1
0
 def _udf_creation_to_op(self, name, symbol, inputs, output):
     udf_info = udf.wrap_udf(self.udf_ll, inputs, output, symbol, name)
     self.temp_functions.append((name, inputs))
     self.con.create_udf(udf_info, database=self.test_data_db)
     op = udf_info.to_operation()
     udf.add_operation(op, name, self.test_data_db)
     assert self.con.exists_udf(name, self.test_data_db)
     return op
Пример #2
0
 def _udf_creation_to_op(self, name, symbol, inputs, output):
     udf_info = udf.wrap_udf(self.udf_ll, inputs, output, symbol, name)
     self.temp_functions.append((name, inputs))
     self.con.create_udf(udf_info, database=self.test_data_db)
     op = udf_info.to_operation()
     udf.add_operation(op, name, self.test_data_db)
     assert self.con.exists_udf(name, self.test_data_db)
     return op
Пример #3
0
    def _generate_wrappers(self):
        for name, (inputs, output, update_sym) in self._udas.items():
            func = wrap_uda(self.library_path, inputs, output, update_sym,
                            name=self.func_prefix + name)
            setattr(self, name, func)

        for name, (inputs, output, sym) in self._udfs.items():
            func = wrap_udf(self.library_path, inputs, output, sym,
                            name=self.func_prefix + name)
            setattr(self, name, func)
Пример #4
0
    def _generate_wrappers(self):
        for name, (inputs, output, update_sym) in self._udas.items():
            func = wrap_uda(self.library_path,
                            inputs,
                            output,
                            update_sym,
                            name=self.func_prefix + name)
            setattr(self, name, func)

        for name, (inputs, output, sym) in self._udfs.items():
            func = wrap_udf(self.library_path,
                            inputs,
                            output,
                            sym,
                            name=self.func_prefix + name)
            setattr(self, name, func)