We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does chdb support executable UDF functions ? If so, how do we configure chdb ?
The text was updated successfully, but these errors were encountered:
chDB is ClickHouse, so all things would be like executable UDF functions
Here is an example:
root@0a8b55995b6e:/auxten/chdb/tests# python3 udf3.py "Value 2"
udf3.py
import chdb ret = chdb.query( "SELECT test_function_python(toUInt64(2));", udf_path="/auxten/chdb/tests/.udf", ) print(ret)
.udf/udf.xml
<functions> <function> <type>executable</type> <name>test_function_python</name> <return_type>String</return_type> <argument> <type>UInt64</type> <name>value</name> </argument> <format>TabSeparated</format> <command>test_function.py</command> </function> </functions>
DO NOT forget chmod +x .udf/test_function.py .udf/test_function.py
chmod +x .udf/test_function.py
#!/usr/bin/python3 import sys if __name__ == '__main__': for line in sys.stdin: print("Value " + line, end='') sys.stdout.flush()
Sorry, something went wrong.
No branches or pull requests
Does chdb support executable UDF functions ?
If so, how do we configure chdb ?
The text was updated successfully, but these errors were encountered: