REST API UDFs¶
Exasol MLflow Plugin contains a list of User Defined Scripts (UDFs) to access MLflow’s REST API and get the results as SQL tables in Exasol.
The UDFs require the plugin’s SLC to be deployed and activated, see Using a Script Language Container.
UDF ARTIFACTS¶
Calls MLflow REST API endpoint artifacts.
Sample Call¶
SELECT ARTIFACTS(
connection_name, path
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
UDF EXPERIMENTS_SEARCH¶
Calls MLflow REST API endpoint experiments/search.
Sample Call¶
SELECT EXPERIMENTS_SEARCH(
connection_name, filter, view_type, order_by, max_results
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF GATEWAY_ENDPOINTS_LIST¶
Calls MLflow REST API endpoint gateway/endpoints/list.
Sample Call¶
SELECT GATEWAY_ENDPOINTS_LIST(
connection_name, provider, secret_id
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF GATEWAY_MODEL_DEFINITIONS_LIST¶
Calls MLflow REST API endpoint gateway/model-definitions/list.
Sample Call¶
SELECT GATEWAY_MODEL_DEFINITIONS_LIST(
connection_name, provider, secret_id
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF MODEL_VERSIONS_GET¶
Calls MLflow REST API endpoint model-versions/get.
Sample Call¶
SELECT MODEL_VERSIONS_GET(
connection_name, name, version
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF MODEL_VERSIONS_GET_DOWNLOAD_URI¶
Calls MLflow REST API endpoint model-versions/get-download-uri.
Sample Call¶
SELECT MODEL_VERSIONS_GET_DOWNLOAD_URI(
connection_name, name, version
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
UDF MODEL_VERSIONS_SEARCH¶
Calls MLflow REST API endpoint model-versions/search.
Sample Call¶
SELECT MODEL_VERSIONS_SEARCH(
connection_name, filter, order_by, max_results
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF REGISTERED_MODEL_GET¶
Calls MLflow REST API endpoint registered-models/get.
Sample Call¶
SELECT REGISTERED_MODEL_GET(
connection_name, name
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF REGISTERED_MODELS_SEARCH¶
Calls MLflow REST API endpoint registered-models/search.
Sample Call¶
SELECT REGISTERED_MODELS_SEARCH(
connection_name, filter, order_by, max_results
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF REGISTERED_MODELS_GET_LATEST_VERSIONS¶
Calls MLflow REST API endpoint registered-models/get-latest-versions.
Sample Call¶
SELECT REGISTERED_MODELS_GET_LATEST_VERSIONS(
connection_name, name, stages
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF RUNS_SEARCH¶
Calls MLflow REST API endpoint runs/search.
Sample Call¶
SELECT RUNS_SEARCH(
connection_name, experiment_ids, filter, run_view_type, order_by, max_results
);
Input Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
Output Columns¶
Name |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|