2.0.0b57
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 |
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 |
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 |