Files
doris/samples/doris-demo/remote-udf-python-demo/README.md
Zhengguo Yang 09bfb8b9d3 [fix] (rpc-udf) Fixed the problem that the query could not be interrupted (#8248)
if an error occurred in the rpc server during the execution of rpc-udf.
Add java,cpp,python demo of rpc-udf server
2022-03-03 09:30:03 +08:00

1.1 KiB

Remote UDF Function Service In Python Demo

Compile

  1. pip install grpcio-tools
  2. python -m grpc_tools.protoc -Iproto --python_out=. --grpc_python_out=. proto/function_service.proto && python -m grpc_tools.protoc -Iproto --python_out=. proto/types.proto

Run

python function_server_demo.py 9000 9000 is the port that the server will listen on