2016-02-10 02:15:54 +00:00
|
|
|
# emacs files
|
|
|
|
*~
|
|
|
|
*\#
|
2017-01-07 16:11:30 +00:00
|
|
|
.tramp_history
|
2016-02-10 02:15:54 +00:00
|
|
|
|
2017-06-23 07:11:28 +00:00
|
|
|
# vim cache files
|
|
|
|
*.swp
|
|
|
|
|
2016-02-10 02:15:54 +00:00
|
|
|
# auto generated files
|
|
|
|
*.logrt
|
|
|
|
|
2018-05-09 04:50:54 +00:00
|
|
|
/build
|
2018-10-26 17:43:50 +00:00
|
|
|
/build_*
|
2018-11-01 10:35:50 +00:00
|
|
|
/build-*
|
2020-05-29 19:53:16 +00:00
|
|
|
/tests/venv
|
2022-01-18 15:25:48 +00:00
|
|
|
/obj-x86_64-linux-gnu/
|
2020-05-05 16:38:40 +00:00
|
|
|
|
2021-06-08 06:14:47 +00:00
|
|
|
# logs
|
|
|
|
*.log
|
2022-11-30 09:39:12 +00:00
|
|
|
*.debuglog
|
2021-06-08 06:14:47 +00:00
|
|
|
*.stderr
|
|
|
|
*.stdout
|
|
|
|
|
2018-07-09 19:59:07 +00:00
|
|
|
/docs/build
|
2020-01-30 10:34:55 +00:00
|
|
|
/docs/publish
|
2018-07-18 10:00:53 +00:00
|
|
|
/docs/edit
|
2020-02-14 09:34:18 +00:00
|
|
|
/docs/website
|
2020-04-15 13:56:49 +00:00
|
|
|
/docs/venv
|
|
|
|
/docs/tools/venv
|
2020-04-04 09:15:31 +00:00
|
|
|
/docs/tools/translate/venv
|
2020-03-19 17:49:27 +00:00
|
|
|
/docs/tools/translate/output.md
|
2018-07-20 17:35:34 +00:00
|
|
|
/docs/en/single.md
|
|
|
|
/docs/ru/single.md
|
2020-01-30 10:34:55 +00:00
|
|
|
/docs/zh/single.md
|
|
|
|
/docs/ja/single.md
|
|
|
|
/docs/fa/single.md
|
2016-02-10 02:15:54 +00:00
|
|
|
|
|
|
|
# callgrind files
|
|
|
|
callgrind.out.*
|
|
|
|
|
|
|
|
# ignore kdevelop files
|
|
|
|
*.kdev4
|
|
|
|
*.kdev_include_paths
|
|
|
|
|
2017-01-10 18:36:11 +00:00
|
|
|
# ignore sublime project files
|
|
|
|
*.sublime-*
|
|
|
|
|
2016-12-23 20:23:46 +00:00
|
|
|
# Qt Creator files
|
|
|
|
*.user
|
|
|
|
|
2016-02-10 02:15:54 +00:00
|
|
|
# ignore perf output
|
|
|
|
*/perf.data
|
|
|
|
|
|
|
|
# ignore build files
|
|
|
|
CMakeCache.txt
|
|
|
|
CMakeFiles
|
|
|
|
Makefile
|
|
|
|
cmake_install.cmake
|
|
|
|
CTestTestfile.cmake
|
|
|
|
*.a
|
|
|
|
*.o
|
feat: implement catboost in library-bridge
This commit moves the catboost model evaluation out of the server
process into the library-bridge binary. This serves two goals: On the
one hand, crashes / memory corruptions of the catboost library no longer
affect the server. On the other hand, we can forbid loading dynamic
libraries in the server (catboost was the last consumer of this
functionality), thus improving security.
SQL syntax:
SELECT
catboostEvaluate('/path/to/model.bin', FEAT_1, ..., FEAT_N) > 0 AS prediction,
ACTION AS target
FROM amazon_train
LIMIT 10
Required configuration:
<catboost_lib_path>/path/to/libcatboostmodel.so</catboost_lib_path>
*** Implementation Details ***
The internal protocol between the server and the library-bridge is
simple:
- HTTP GET on path "/extdict_ping":
A ping, used during the handshake to check if the library-bridge runs.
- HTTP POST on path "extdict_request"
(1) Send a "catboost_GetTreeCount" request from the server to the
bridge, containing a library path (e.g /home/user/libcatboost.so) and
a model path (e.g. /home/user/model.bin). Rirst, this unloads the
catboost library handler associated to the model path (if it was
loaded), then loads the catboost library handler associated to the
model path, then executes GetTreeCount() on the library handler and
finally sends the result back to the server. Step (1) is called once
by the server from FunctionCatBoostEvaluate::getReturnTypeImpl(). The
library path handler is unloaded in the beginning because it contains
state which may no longer be valid if the user runs
catboost("/path/to/model.bin", ...) more than once and if "model.bin"
was updated in between.
(2) Send "catboost_Evaluate" from the server to the bridge, containing
the model path and the features to run the interference on. Step (2)
is called multiple times (once per chunk) by the server from function
FunctionCatBoostEvaluate::executeImpl(). The library handler for the
given model path is expected to be already loaded by Step (1).
Fixes #27870
2022-08-05 07:53:06 +00:00
|
|
|
*.so
|
|
|
|
*.dll
|
|
|
|
*.lib
|
|
|
|
*.dylib
|
2017-09-21 21:51:17 +00:00
|
|
|
cmake-build-*
|
2016-02-10 02:15:54 +00:00
|
|
|
|
2017-05-30 11:49:17 +00:00
|
|
|
# Python cache
|
|
|
|
*.pyc
|
|
|
|
__pycache__
|
2018-05-03 13:34:19 +00:00
|
|
|
*.pytest_cache
|
2017-05-30 11:49:17 +00:00
|
|
|
|
2016-02-14 11:09:53 +00:00
|
|
|
test.cpp
|
|
|
|
CPackConfig.cmake
|
|
|
|
CPackSourceConfig.cmake
|
|
|
|
|
|
|
|
*-preprocessed.xml
|
|
|
|
|
|
|
|
core
|
2017-09-04 19:33:17 +00:00
|
|
|
!core/
|
2016-02-14 11:09:53 +00:00
|
|
|
vgcore*
|
2016-02-10 02:15:54 +00:00
|
|
|
|
|
|
|
*.deb
|
2022-10-16 20:48:17 +00:00
|
|
|
*.tar.zst
|
2016-02-10 02:15:54 +00:00
|
|
|
*.build
|
|
|
|
*.upload
|
|
|
|
*.changes
|
|
|
|
build-stamp
|
|
|
|
configure-stamp
|
|
|
|
|
|
|
|
*.bin
|
|
|
|
*.mrk
|
2019-07-04 18:30:01 +00:00
|
|
|
*.mrk2
|
2020-08-07 00:53:27 +00:00
|
|
|
*.mrk3
|
2016-02-10 02:15:54 +00:00
|
|
|
|
|
|
|
.dupload.conf
|
|
|
|
|
|
|
|
# Netbeans project files
|
2016-02-14 11:09:53 +00:00
|
|
|
nbproject/*
|
2016-02-10 02:15:54 +00:00
|
|
|
|
|
|
|
# JetBrains project files
|
|
|
|
.idea
|
|
|
|
|
2016-11-10 18:27:35 +00:00
|
|
|
# Microsoft Visual Studio Code
|
|
|
|
.vscode
|
|
|
|
|
2016-02-10 02:15:54 +00:00
|
|
|
config-preprocessed.xml
|
|
|
|
|
|
|
|
# Protobuf
|
|
|
|
*.pb.cpp
|
|
|
|
*.pb.h
|
2016-06-26 04:24:37 +00:00
|
|
|
|
|
|
|
# Ignore symlink to private repository
|
|
|
|
/private
|
2017-04-10 14:24:53 +00:00
|
|
|
|
|
|
|
# Gulp dependencies used to minify website
|
|
|
|
node_modules
|
|
|
|
public
|
2017-05-30 13:47:46 +00:00
|
|
|
website/docs
|
2017-12-29 15:45:21 +00:00
|
|
|
website/presentations
|
2018-07-30 16:34:55 +00:00
|
|
|
website/package-lock.json
|
2018-07-18 10:00:53 +00:00
|
|
|
.DS_Store
|
|
|
|
*/.DS_Store
|
2018-10-30 14:05:44 +00:00
|
|
|
|
2018-12-11 17:43:12 +00:00
|
|
|
# cquery cache
|
|
|
|
/.cquery-cache
|
2018-12-28 09:07:58 +00:00
|
|
|
|
|
|
|
# ccls cache
|
|
|
|
/.ccls-cache
|
2019-02-07 13:47:16 +00:00
|
|
|
|
2020-01-14 13:30:06 +00:00
|
|
|
# clangd cache
|
|
|
|
/.clangd
|
2020-10-10 20:41:27 +00:00
|
|
|
/.cache
|
2020-01-14 13:30:06 +00:00
|
|
|
|
2019-02-07 13:47:16 +00:00
|
|
|
/compile_commands.json
|
2019-10-30 07:01:53 +00:00
|
|
|
|
|
|
|
# Toolchains
|
|
|
|
/cmake/toolchain/*
|
2020-11-24 12:36:19 +00:00
|
|
|
|
2020-12-04 02:15:44 +00:00
|
|
|
# ANTLR extension cache
|
|
|
|
.antlr
|
|
|
|
|
|
|
|
# ANTLR generated files
|
|
|
|
/src/Parsers/New/*.interp
|
|
|
|
/src/Parsers/New/*.tokens
|
|
|
|
/src/Parsers/New/ClickHouseParserBaseVisitor.*
|
|
|
|
|
|
|
|
# pytest-profiling
|
|
|
|
/prof
|
|
|
|
|
2020-11-24 12:36:19 +00:00
|
|
|
*.iml
|
2021-02-17 04:56:57 +00:00
|
|
|
|
|
|
|
# data store
|
|
|
|
/programs/server/data
|
|
|
|
/programs/server/metadata
|
|
|
|
/programs/server/store
|
|
|
|
|
2022-10-26 08:30:57 +00:00
|
|
|
# temporary test files
|
|
|
|
tests/queries/0_stateless/test_*
|
|
|
|
tests/queries/0_stateless/*.binary
|
2022-12-12 13:05:37 +00:00
|
|
|
tests/queries/0_stateless/*.generated-expect
|