Skip to content

snowflake updates #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions docs/snowflake-docs/providers/snowflake/alert/alerts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,40 @@ Creates, updates, deletes, gets or lists a <code>alerts</code> resource.

## `SELECT` examples

<Tabs
defaultValue="list_alerts"
values={[
{ label: 'list_alerts', value: 'list_alerts' },
{ label: 'fetch_alert', value: 'fetch_alert' }
]
}>
<TabItem value="list_alerts">

List alerts

```sql
SELECT
name,
action,
comment,
condition,
created_on,
database_name,
owner,
owner_role_type,
schedule,
schema_name,
state,
warehouse
FROM snowflake.alert.alerts
WHERE database_name = '{{ database_name }}'
AND schema_name = '{{ schema_name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
<TabItem value="fetch_alert">

Fetch an alert

```sql
SELECT
Expand All @@ -91,9 +123,13 @@ state,
warehouse
FROM snowflake.alert.alerts
WHERE database_name = '{{ database_name }}'
AND name = '{{ name }}'
AND schema_name = '{{ schema_name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
</Tabs>

## `INSERT` example

Use the following StackQL query and manifest file to create a new <code>alerts</code> resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,16 @@ Creates, updates, deletes, gets or lists a <code>api_integrations</code> resourc

## `SELECT` examples

List API integrations
<Tabs
defaultValue="list_api_integrations"
values={[
{ label: 'list_api_integrations', value: 'list_api_integrations' },
{ label: 'fetch_api_integration', value: 'fetch_api_integration' }
]
}>
<TabItem value="list_api_integrations">

List API integrations

```sql
SELECT
Expand All @@ -78,6 +86,27 @@ enabled
FROM snowflake.api_integration.api_integrations
WHERE endpoint = '{{ endpoint }}';
```
</TabItem>
<TabItem value="fetch_api_integration">

Fetch an API integration

```sql
SELECT
name,
api_allowed_prefixes,
api_blocked_prefixes,
api_hook,
comment,
created_on,
enabled
FROM snowflake.api_integration.api_integrations
WHERE name = '{{ name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
</Tabs>

## `INSERT` example

Use the following StackQL query and manifest file to create a new <code>api_integrations</code> resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,16 @@ Creates, updates, deletes, gets or lists a <code>catalog_integrations</code> res

## `SELECT` examples

List catalog integrations.
<Tabs
defaultValue="list_catalog_integrations"
values={[
{ label: 'list_catalog_integrations', value: 'list_catalog_integrations' },
{ label: 'fetch_catalog_integration', value: 'fetch_catalog_integration' }
]
}>
<TabItem value="list_catalog_integrations">

List catalog integrations.

```sql
SELECT
Expand All @@ -79,6 +87,28 @@ type
FROM snowflake.catalog_integration.catalog_integrations
WHERE endpoint = '{{ endpoint }}';
```
</TabItem>
<TabItem value="fetch_catalog_integration">

Fetch a catalog integration.

```sql
SELECT
name,
catalog,
category,
comment,
created_on,
enabled,
table_format,
type
FROM snowflake.catalog_integration.catalog_integrations
WHERE name = '{{ name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
</Tabs>

## `INSERT` example

Use the following StackQL query and manifest file to create a new <code>catalog_integrations</code> resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,16 @@ Creates, updates, deletes, gets or lists a <code>compute_pools</code> resource.

## `SELECT` examples

Lists the compute pools under the account.
<Tabs
defaultValue="list_compute_pools"
values={[
{ label: 'list_compute_pools', value: 'list_compute_pools' },
{ label: 'fetch_compute_pool', value: 'fetch_compute_pool' }
]
}>
<TabItem value="list_compute_pools">

Lists the compute pools under the account.

```sql
SELECT
Expand Down Expand Up @@ -115,6 +123,42 @@ updated_on
FROM snowflake.compute_pool.compute_pools
WHERE endpoint = '{{ endpoint }}';
```
</TabItem>
<TabItem value="fetch_compute_pool">

Fetches a named compute pool. You can get the name of the compute pool from the `/api/v2/compute-pools` GET request.

```sql
SELECT
name,
active_nodes,
application,
auto_resume,
auto_suspend_secs,
budget,
comment,
created_on,
error_code,
idle_nodes,
instance_family,
is_exclusive,
max_nodes,
min_nodes,
num_jobs,
num_services,
owner,
resumed_on,
state,
status_message,
target_nodes,
updated_on
FROM snowflake.compute_pool.compute_pools
WHERE name = '{{ name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
</Tabs>

## `INSERT` example

Use the following StackQL query and manifest file to create a new <code>compute_pools</code> resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,16 @@ Creates, updates, deletes, gets or lists a <code>databases</code> resource.

## `SELECT` examples

Lists the accessible databases.
<Tabs
defaultValue="list_databases"
values={[
{ label: 'list_databases', value: 'list_databases' },
{ label: 'fetch_database', value: 'fetch_database' }
]
}>
<TabItem value="list_databases">

Lists the accessible databases.

```sql
SELECT
Expand Down Expand Up @@ -128,6 +136,43 @@ user_task_timeout_ms
FROM snowflake.database.databases
WHERE endpoint = '{{ endpoint }}';
```
</TabItem>
<TabItem value="fetch_database">

Fetches a database.

```sql
SELECT
name,
budget,
comment,
created_on,
data_retention_time_in_days,
default_ddl_collation,
dropped_on,
is_current,
is_default,
kind,
log_level,
max_data_extension_time_in_days,
options,
origin,
owner,
owner_role_type,
retention_time,
serverless_task_max_statement_size,
serverless_task_min_statement_size,
suspend_task_after_num_failures,
trace_level,
user_task_managed_initial_warehouse_size,
user_task_timeout_ms
FROM snowflake.database.databases
WHERE name = '{{ name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
</Tabs>

## `INSERT` example

Use the following StackQL query and manifest file to create a new <code>databases</code> resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,50 @@ Creates, updates, deletes, gets or lists a <code>dynamic_tables</code> resource.

## `SELECT` examples

<Tabs
defaultValue="list_dynamic_tables"
values={[
{ label: 'list_dynamic_tables', value: 'list_dynamic_tables' },
{ label: 'fetch_dynamic_table', value: 'fetch_dynamic_table' }
]
}>
<TabItem value="list_dynamic_tables">

Lists the dynamic tables under the database and schema.

```sql
SELECT
name,
automatic_clustering,
budget,
bytes,
cluster_by,
columns,
comment,
created_on,
data_retention_time_in_days,
database_name,
initialize,
kind,
max_data_extension_time_in_days,
owner,
owner_role_type,
query,
refresh_mode,
rows,
scheduling_state,
schema_name,
target_lag,
warehouse
FROM snowflake.dynamic_table.dynamic_tables
WHERE database_name = '{{ database_name }}'
AND schema_name = '{{ schema_name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
<TabItem value="fetch_dynamic_table">

Fetch a Dynamic Table.

```sql
SELECT
Expand Down Expand Up @@ -121,9 +163,13 @@ target_lag,
warehouse
FROM snowflake.dynamic_table.dynamic_tables
WHERE database_name = '{{ database_name }}'
AND name = '{{ name }}'
AND schema_name = '{{ schema_name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
</Tabs>

## `INSERT` example

Use the following StackQL query and manifest file to create a new <code>dynamic_tables</code> resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,47 @@ Creates, updates, deletes, gets or lists a <code>event_tables</code> resource.

## `SELECT` examples

<Tabs
defaultValue="list_event_tables"
values={[
{ label: 'list_event_tables', value: 'list_event_tables' },
{ label: 'fetch_event_table', value: 'fetch_event_table' }
]
}>
<TabItem value="list_event_tables">

List event tables

```sql
SELECT
name,
automatic_clustering,
bytes,
change_tracking,
cluster_by,
columns,
comment,
created_on,
data_retention_time_in_days,
database_name,
default_ddl_collation,
max_data_extension_time_in_days,
owner,
owner_role_type,
rows,
schema_name,
search_optimization,
search_optimization_bytes,
search_optimization_progress
FROM snowflake.event_table.event_tables
WHERE database_name = '{{ database_name }}'
AND schema_name = '{{ schema_name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
<TabItem value="fetch_event_table">

Fetch an event table

```sql
SELECT
Expand All @@ -105,9 +144,13 @@ search_optimization_bytes,
search_optimization_progress
FROM snowflake.event_table.event_tables
WHERE database_name = '{{ database_name }}'
AND name = '{{ name }}'
AND schema_name = '{{ schema_name }}'
AND endpoint = '{{ endpoint }}';
```
</TabItem>
</Tabs>

## `INSERT` example

Use the following StackQL query and manifest file to create a new <code>event_tables</code> resource.
Expand Down
Loading