Session APIs
load_dataset
Description: Loads a dataset from a specified database.
Syntax:
load_dataset(name, *, database=None)
Input parameters:
| Parameter | Mandatory (Yes/No) | Data Type | Description |
|---|---|---|---|
| name | Yes | str | Name of the dataset to load. |
| database | No | Optional[str] | Name of the database from which to load the dataset. If not specified, the default database is used. |
Return type: Dataset.
set_function_staging_workspace
Description: Configures the temporary workspace required for function deployment by setting necessary credentials and storage details.
Syntax:
set_function_staging_workspace(*, obs_server, obs_bucket_name, obs_directory_base, access_key, secret_key, security_token=None)
Input parameters:
| Parameter | Mandatory (Yes/No) | Data Type | Description |
|---|---|---|---|
| obs_server | Yes | str | OBS address. |
| obs_bucket_name | Yes | str | Name of the OBS bucket to use. |
| obs_directory_base | Yes | str | Base directory path in OBS for storing workspace data. |
| access_key | Yes | str | Access key for authentication. |
| secret_key | Yes | str | Secret key for authentication. |
| security_token | No | Optional[str] | Security token for authentication. If no token is provided, the default value None is used. |
Return type: None
sql
Description: Executes a SQL query and returns the result.
Syntax:
sql(query, **kwargs)
Input parameters:
| Parameter | Mandatory (Yes/No) | Data Type | Description |
|---|---|---|---|
| query | Yes | str | SQL query statement to execute. |
| **kwargs | No | Any | Variable keyword arguments used to pass additional parameters for the query. |
Return type: Any. The result of the SQL query is returned.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot