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_LIST¶
Calls MLflow REST API endpoint artifacts.
SELECT ARTIFACTS_LIST(
connection_name, path
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
recommended |
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
UDF EXPERIMENTS_SEARCH¶
Calls MLflow REST API endpoint experiments/search.
SELECT EXPERIMENTS_SEARCH(
connection_name, filter, view_type, order_by, max_results
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF GATEWAY_ENDPOINTS_LIST¶
Calls MLflow REST API endpoint gateway/endpoints/list.
SELECT GATEWAY_ENDPOINTS_LIST(
connection_name, provider, secret_id
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
|
|
|
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF GATEWAY_MODEL_DEFINITIONS_LIST¶
Calls MLflow REST API endpoint gateway/model-definitions/list.
SELECT GATEWAY_MODEL_DEFINITIONS_LIST(
connection_name, provider, secret_id
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
|
|
|
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF MODEL_VERSIONS_GET¶
Calls MLflow REST API endpoint model-versions/get.
SELECT MODEL_VERSIONS_GET(
connection_name, name, version
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
mandatory |
|
|
mandatory |
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF MODEL_VERSIONS_GET_DOWNLOAD_URI¶
Calls MLflow REST API endpoint model-versions/get-download-uri.
SELECT MODEL_VERSIONS_GET_DOWNLOAD_URI(
connection_name, name, version
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
mandatory |
|
|
mandatory |
Output Column |
SQL Type |
|---|---|
|
|
UDF MODEL_VERSIONS_SEARCH¶
Calls MLflow REST API endpoint model-versions/search.
SELECT MODEL_VERSIONS_SEARCH(
connection_name, filter, order_by, max_results
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
|
|
|
|
|
|
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF REGISTERED_MODEL_GET¶
Calls MLflow REST API endpoint registered-models/get.
SELECT REGISTERED_MODEL_GET(
connection_name, name
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
mandatory |
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF REGISTERED_MODELS_SEARCH¶
Calls MLflow REST API endpoint registered-models/search.
SELECT REGISTERED_MODELS_SEARCH(
connection_name, filter, order_by, max_results
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
|
|
|
|
|
|
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF REGISTERED_MODELS_GET_LATEST_VERSIONS¶
Calls MLflow REST API endpoint registered-models/get-latest-versions.
SELECT REGISTERED_MODELS_GET_LATEST_VERSIONS(
connection_name, name, stages
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
mandatory |
|
|
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UDF RUNS_SEARCH¶
Calls MLflow REST API endpoint runs/search.
SELECT RUNS_SEARCH(
connection_name, experiment_ids, filter, run_view_type, order_by, max_results
);
Input Column |
SQL Type |
Comment |
|---|---|---|
|
|
recommended |
|
|
|
|
|
|
|
|
|
|
|
Output Column |
SQL Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|