允许转换执行 Substrait 查询计划
安装和加载
INSTALL substrait FROM community;
LOAD substrait;
示例
.mode line
CALL get_substrait('SELECT count(exercise) AS exercise FROM crossfit WHERE difficulty_level <= 5');
新增函数
function_name (函数名称) | 函数类型 | description (描述) | comment (注释) | examples (示例) |
---|---|---|---|---|
get_substrait | table (表) | 将提供的查询转换为二进制 Substrait 计划 | NULL | [NULL] |
get_substrait_json | table (表) | 将提供的查询转换为 JSON 格式的 Substrait 计划 | NULL | [NULL] |
from_substrait | table (表) | 针对 DuckDB 执行二进制 Substrait 计划(以字节形式提供)并返回结果 | NULL | [NULL] |
from_substrait_json | table (表) | 针对 DuckDB 执行以 JSON 编写的 Substrait 计划并返回结果 | NULL | [NULL] |