The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
2.1.9
SnowflakeConnector
Package: flyteplugins.snowflake
Methods
| Method | Description |
|---|---|
create() |
Submit a query to Snowflake asynchronously. |
delete() |
Cancel a running Snowflake query. |
get() |
Poll the status of a Snowflake query. |
get_logs() |
Return the metrics for the task. |
get_metrics() |
Return the metrics for the task. |
create()
def create(
task_template: flyteidl2.core.tasks_pb2.TaskTemplate,
inputs: typing.Optional[typing.Dict[str, typing.Any]],
snowflake_private_key: typing.Optional[str],
snowflake_private_key_passphrase: typing.Optional[str],
kwargs,
) -> flyteplugins.snowflake.connector.SnowflakeJobMetadataSubmit a query to Snowflake asynchronously.
| Parameter | Type | Description |
|---|---|---|
task_template |
flyteidl2.core.tasks_pb2.TaskTemplate |
The Flyte task template containing the SQL query and configuration. |
inputs |
typing.Optional[typing.Dict[str, typing.Any]] |
Optional dictionary of input parameters for parameterized queries. |
snowflake_private_key |
typing.Optional[str] |
The private key content set as a Flyte secret. |
snowflake_private_key_passphrase |
typing.Optional[str] |
The passphrase for the private key set as a Flyte secret, if any. |
kwargs |
**kwargs |
Returns: A SnowflakeJobMetadata object containing the query ID and link to the query dashboard.
delete()
def delete(
resource_meta: flyteplugins.snowflake.connector.SnowflakeJobMetadata,
snowflake_private_key: typing.Optional[str],
snowflake_private_key_passphrase: typing.Optional[str],
kwargs,
)Cancel a running Snowflake query.
| Parameter | Type | Description |
|---|---|---|
resource_meta |
flyteplugins.snowflake.connector.SnowflakeJobMetadata |
The SnowflakeJobMetadata containing the query ID. |
snowflake_private_key |
typing.Optional[str] |
The private key content set as a Flyte secret. |
snowflake_private_key_passphrase |
typing.Optional[str] |
The passphrase for the private key set as a Flyte secret, if any. |
kwargs |
**kwargs |
get()
def get(
resource_meta: flyteplugins.snowflake.connector.SnowflakeJobMetadata,
snowflake_private_key: typing.Optional[str],
snowflake_private_key_passphrase: typing.Optional[str],
kwargs,
) -> flyte.connectors._connector.ResourcePoll the status of a Snowflake query.
| Parameter | Type | Description |
|---|---|---|
resource_meta |
flyteplugins.snowflake.connector.SnowflakeJobMetadata |
The SnowflakeJobMetadata containing the query ID. |
snowflake_private_key |
typing.Optional[str] |
The private key content set as a Flyte secret. |
snowflake_private_key_passphrase |
typing.Optional[str] |
The passphrase for the private key set as a Flyte secret, if any. |
kwargs |
**kwargs |
Returns: A Resource object containing the query results and a link to the query dashboard.
get_logs()
def get_logs(
resource_meta: flyte.connectors._connector.ResourceMeta,
kwargs,
) -> flyteidl2.connector.connector_pb2.GetTaskLogsResponseReturn the metrics for the task.
| Parameter | Type | Description |
|---|---|---|
resource_meta |
flyte.connectors._connector.ResourceMeta |
|
kwargs |
**kwargs |
get_metrics()
def get_metrics(
resource_meta: flyte.connectors._connector.ResourceMeta,
kwargs,
) -> flyteidl2.connector.connector_pb2.GetTaskMetricsResponseReturn the metrics for the task.
| Parameter | Type | Description |
|---|---|---|
resource_meta |
flyte.connectors._connector.ResourceMeta |
|
kwargs |
**kwargs |