ADBC
Arrow 資料庫連線能力
載入中...
搜尋中...
沒有符合項目
Substrait 語意

函式

AdbcStatusCode AdbcStatementSetSubstraitPlan (struct AdbcStatement *statement, const uint8_t *plan, size_t length, struct AdbcError *error)
 設定要執行的 Substrait 計畫。
 

詳細描述

用於執行 Substrait 計畫或查詢與 Substrait 相關的metadata的函式。驅動程式不一定需要同時支援 SQL 和 Substrait 語意。如果支援,則可能是透過內部轉換表示法來達成。

函式文件

◆ AdbcStatementSetSubstraitPlan()

AdbcStatusCode AdbcStatementSetSubstraitPlan ( struct AdbcStatement * statement,
const uint8_t * plan,
size_t length,
struct AdbcError * error )

設定要執行的 Substrait 計畫。

然後可以使用 AdbcStatementExecute 執行查詢。對於預期會重複執行的查詢,請先使用 AdbcStatementPrepare 準備陳述式。

參數
[in]statement陳述式。
[in]plan要執行的序列化 substrait.Plan。
[in]length序列化計畫的長度。
[out]error錯誤詳細資訊,如果發生錯誤。