Compute usage with SQL in Foundry(在 Foundry 中使用 SQL 进行计算)¶
Running queries or builds with SQL warehousing in Foundry consumes compute resources, measured in compute-seconds. This page explains how compute is used by the SQL warehouse and how usage is attributed to Foundry resources for reporting. Usage can be viewed from the Resource management application.
Foundry compute by query type¶
The below table lays out Foundry compute used in SQL warehouse queries by query type and links to relevant detailed documentation.
| Query type | Resources queried | Query engine | Compute rate type | Resource allocation |
|---|---|---|---|---|
| Read (SELECT) | Datasets, Iceberg tables | Furnace | Transforms | Split evenly across resources queried |
| Write (CREATE, INSERT, UPDATE, DELETE) | Datasets, Iceberg tables | Furnace | Transforms | Split evenly across resources written to |
| Read (SELECT) | Datasets, Iceberg tables, virtual tables, restricted views, objects (via materializations) | Legacy Spark engine | Contour | Split evenly across resources queried |
| Read (SELECT) | Datasets | Legacy direct read engine | NA | NA |
| Read (SELECT) | Object Types, Many-to-Many Links | Ontology SQL | Foundry Ontology | The underlying saved application executing the query, if not present split evenly across resources queried |
中文翻译¶
在 Foundry 中使用 SQL 进行计算¶
在 Foundry 中通过 SQL 仓库(SQL warehousing)运行查询或构建会消耗计算资源,以计算秒(compute-seconds)为单位计量。本文档说明 SQL 仓库如何消耗计算资源,以及如何将使用量归因到 Foundry 资源(Foundry resources)以进行报告。使用量可通过资源管理应用查看。
按查询类型划分的 Foundry 计算¶
下表按查询类型列出了 SQL 仓库查询中使用的 Foundry 计算资源,并附有相关详细文档的链接。
| 查询类型 | 查询的资源 | 查询引擎 | 计算费率类型 | 资源分配 |
|---|---|---|---|---|
| 读取(SELECT) | 数据集、Iceberg 表 | Furnace | 转换 | 在查询的资源之间平均分配 |
| 写入(CREATE、INSERT、UPDATE、DELETE) | 数据集、Iceberg 表 | Furnace | 转换 | 在写入的资源之间平均分配 |
| 读取(SELECT) | 数据集、Iceberg 表、虚拟表、受限视图、对象(通过物化) | 旧版 Spark 引擎 | Contour | 在查询的资源之间平均分配 |
| 读取(SELECT) | 数据集 | 旧版直接读取引擎 | 不适用 | 不适用 |
| 读取(SELECT) | 对象类型、多对多链接 | 本体 SQL | Foundry 本体 | 执行查询的底层已保存应用,若不存在则在查询的资源之间平均分配 |