UiPath Documentation
activities
latest
false
Integration Service 活动
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

Execute a SQL Query

Execute a SQL Query activity in the Databricks connector.

项目兼容性​

Windows | 跨平台

概述​

描述API 方法API 路径
Run a SQL statement on a Databricks SQL warehouse. Requires warehouse_id and statement; rows come back under result.data_array with column metadata in manifest.schema.发布/statements

输入​

参数描述数据类型
SQL Statement *The SQL statement to execute. For example, SELECT * FROM hive_metastore.default.p_order LIMIT 10.字符串
Warehouse ID *ID of the SQL warehouse to run the statement on. For example, a1b2c3d4e5f6a7b8.字符串
目录Catalog used as the default for the statement. For example, main.字符串
架构Schema used as the default for the statement. For example, default.字符串
Wait TimeoutHow long to wait synchronously, 0s or 5s-50s. Default: 30s.字符串
On Wait TimeoutCONTINUE returns a statement_id to poll; CANCEL aborts the statement. For long queries, set Wait Timeout to 0s and On Wait Timeout to CONTINUE, then poll with Get SQL Statement Result. Allowed values: CONTINUE, CANCEL. Default: CONTINUE.字符串
Row LimitMaximum number of rows to return. For example, 1000.整数
Byte LimitMaximum result size in bytes. For example, 10485760.整数
DispositionINLINE returns data in the response; EXTERNAL_LINKS returns presigned URLs. Allowed values: INLINE, EXTERNAL_LINKS. Default: INLINE.字符串
格式Result serialization format. Allowed values: JSON_ARRAY, ARROW_STREAM, CSV. Default: JSON_ARRAY.字符串
参数Named parameter markers, for example [{"name":"p","value":"1","type":"INT"}].数组

* Required parameter.

输出​

参数描述数据类型
Statement IDServer-assigned statement id; poll with Get Statement.字符串
状态Execution state: PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED, CLOSED.object
ManifestResult schema, chunk layout and row counts.object
结果Result payload; row data is under result.data_array.object
备注:

You might see variations in the output depending on where you run the activity. In API workflows and Maestro Flow, a single response object containing all the fields is returned. In RPA workflows, not all fields are exposed, but you can still retrieve them from the exposed response object.

  • 项目兼容性​
  • 概述​
  • 输入​
  • 输出​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新