SQL API
Login
This function is used to generate the login url which you can use to obtain the refresh token.
SELECT Login()
StartExtractSchema
This function is to used to start the extract schema job for schema extraction.
SELECT StartExtractSchema(
"refresh token",
"snowflake url",
"snowflake account name",
"snowflake username",
"snowflake password",
"warehouse",
"database",
"schema",
"table",
"query",
"insecure",
"proxy host",
"proxy port",
"proxy username",
"proxy password"
)
Input
Refresh Token
- (string) Token obtained by opening login url in browserSnowflake Url
- (string) Url of the Snowflake accountSnowflake Account Name
- (string) Snowflake account name or identifierSnowflake Username
- (string) Username for the Snowflake accountSnowflake Password
- (string) Password for the Snowflake accountSnowflake Warehouse
- (string) Name of the Snowflake warehouseSnowflake Database
- (string) Name of the Snowflake databaseSnowflake Schema
- (string) Name of the Snowflake schemaSnowflake Table Name
- (string) Name of the Snowflake tableSnowflake Query
- (String) Select queryInsecure
- (string) Denotes whether Snowflake environment runs on https or httpProxy Host
- (string) Proxy host name, if any, else''
Proxy Port
- (int) Proxy port, if any, else''
Proxy Username
- (string) Proxy username, if any, else''
Proxy Password
- (string) Proxy password, if any, else''
Output
Job Id
(string)
GetExtractSchemaResult
This function is used to obtain the result of the extract schema job which can be then used to register the feature set.
SELECT GetExtractSchemaResult(
"refresh token",
"job id"
)
Input
Refresh Token
- (string) Token obtained by opening login url in browserJob Id
- (string) Job Id obtained from theStartExtractSchema
function
Output
Schema
- (string) Schema of the dataset encoded in Base64
Register
This function is used to register or create the feature set.
SELECT Register(
"refresh token",
"project name",
"feature set name",
"schema"
)
Input
Refresh Token
- (string) Token obtained by opening login url in browserProject Name
- (string) Name of the project in Feature StoreName
- (string) Name of the feature setSchema
- (string) Base64 encoded schema obtained fromGetExtractSchemaResult
Output
Message
(string)
StartIngest
This function is used to trigger the ingest job for the feature set.
SELECT StartIngest(
"refresh token",
"project name",
"feature set name",
"snowflake url",
"snowflake account name",
"snowflake username",
"snowflake password",
"warehouse",
"database",
"schema",
"table",
"query",
"insecure",
"proxy host",
"proxy port",
"proxy username",
"proxy password"
)
Input
Refresh Token
- (string) Token obtained by opening login url in browserProject Name
- (string) Name of the project in feature storeName
- (string) Name of the feature setSnowflake Url
- (string) Url of the snowflake accountSnowflake Account Name
- (string) Snowflake account name or identifierSnowflake Username
- (string) Username for the Snowflake accountSnowflake Password
- (string) Password for the Snowflake accountSnowflake Warehouse
- (string) Name of the Snowflake warehouseSnowflake Database
- (string) Name of the Snowflake databaseSnowflake Schema
- (string) Name of the Snowflake schemaSnowflake Table Name
- (string) Name of the Snowflake tableSnowflake Query
- (String) Select queryInsecure
- (string) Denotes whether Snowflake environment runs on https or httpProxy Host
- (string) Proxy host name, if any, else''
Proxy Port
- (int) Proxy port, if any, else''
Proxy Username
- (string) Proxy username, if any, else''
Proxy Password
- (string) Proxy password, if any, else''
Output
Job Id
(string)
GetIngestResult
This function is used to obtain the result of the data ingest job.
SELECT GetIngestResult(
"refresh token",
"job id"
)
Input
Refresh Token
- (string) Token obtained by opening login url in browserJob Id
- (string) Job Id obtained from theStartIngest
function
Output
Cache Location
- (string) Location of the ingested data set in AzureIngestion Timestamp
- (timestamp) Timestamp of ingestIngest Scope
- (object) Start & End Date Time of the ingested data
StartRetreive
This function is used to start the retrieve job for the feature set.
SELECT StartRetrieve(
"refresh token",
"project name",
"feature set name"
)
Input
Refresh Token
- (string) Token obtained by opening login url in browserProject Name
- (string) Name of the project in feature storeName
- (string) Name of the feature set
Output
Job Id
(string)
GetRetrieveResult
This function is used to obtain the query to create an external table pointing to the feature set data.
SELECT GetRetrieveResult(
"refresh token",
"project name",
"feature set name",
"snowflake stage name",
"external table name",
"job id"
)
Input
Refresh Token
- (string) Token obtained by opening login url in browserProject Name
- (string) Name of the project in Feature StoreName
- (string) Name of the feature setSnowflake Stage Name
- (string) Name of the Snowflake Azure stage that is integrated with the Feature Store Retrieve CacheExternal Table Name
- (string) Name of the external table that needs to be createdJob Id
- (string) Job Id obtained from theStartRetrieve
function
Output
Create External Table Query
(string)
SearchByFeatureSet
This function is used to search and obtain the feature set names by using properties of the feature set.
Searchable fields
Field name | Operators |
---|---|
name | eq, ne in, like |
description | eq, ne in, like |
deprecated | eq, ne |
application_name | eq, ne in, like |
application_id | eq, ne in, like |
tags | eq, ne in, like |
data_source_domains | eq, ne in, like |
owner | eq, ne in, like |
author | eq, ne in, like |
SELECT SearchByFeatureSet(
"refresh token",
"project name",
array_construct(
array_construct("field name", "operator", "value"), // Filter 1
array_construct("field name", "operator", "value"), // Filter 2
)
)
Input
Refresh Token
- (string) Token obtained by opening login url in browserProject Name
(string) - Name of the project in Feature StoreParams(array(array))
- Array of the array of parameters
Output
- List of matching feature set names that are obtained by applying all the provided filter conditions
- Submit and view feedback for this page
- Send feedback about H2O Feature Store to cloud-feedback@h2o.ai