跳转至

SQL in Foundry(Foundry 中的 SQL)

Foundry supports SQL queries against both tabular data and ontology object types, using a common Spark SQL dialect. SQL is available from the dedicated SQL Studio application, the embedded SQL console in supported applications, and external SQL clients connected via Arrow Flight SQL or the SQL REST API.

Capabilities

SQL in Foundry enables you to:

  • Query tabular data using standard SQL syntax powered by the Furnace engine.
  • Query ontology object types using the Ontology SQL engine.
  • Create and modify tabular data.
  • Author Ontology SQL functions (beta).
  • Run quick contextual queries using the embedded SQL console.
  • Connect external tools to query Foundry resources with SQL.

Getting started

To get started with SQL in Foundry:

  1. Learn the fundamentals by reviewing the SQL dialect documentation, along with the Furnace and Ontology SQL engine overviews.
  2. Open the SQL editor, either via SQL Studio or the embedded SQL console in supported applications.
  3. Run your first query referencing SQL examples.
  4. Connect external tools using Arrow Flight SQL.

For details on the roles and permissions that govern SQL access, see SQL permissions.


中文翻译

Foundry 中的 SQL

Foundry 支持使用通用的 Spark SQL 方言对表格数据和本体论对象类型(Ontology Object Types)执行 SQL 查询。SQL 可通过专用的 SQL Studio 应用程序、受支持应用中嵌入的 SQL 控制台,以及通过 Arrow Flight SQLSQL REST API 连接的外部 SQL 客户端使用。

功能特性

Foundry 中的 SQL 使您能够:

  • 查询表格数据:使用由 Furnace 引擎驱动的标准 SQL 语法。
  • 查询本体论对象类型:使用 Ontology SQL 引擎。
  • 创建和修改表格数据
  • 编写 Ontology SQL 函数(测试版)
  • 运行快速上下文查询:使用嵌入的 SQL 控制台
  • 连接外部工具:使用 SQL 查询 Foundry 资源。

快速入门

要在 Foundry 中开始使用 SQL:

  1. 学习基础知识:查阅 SQL 方言文档,以及 FurnaceOntology SQL 引擎概述。
  2. 打开 SQL 编辑器:通过 SQL Studio 或受支持应用中嵌入的 SQL 控制台。
  3. 运行您的第一个查询:参考 SQL 示例
  4. 连接外部工具:使用 Arrow Flight SQL

有关管理 SQL 访问权限的角色和权限的详细信息,请参阅 SQL 权限