跳过内容

合并和协调模式

用法

unify_schemas(..., schemas = list(...))

参数

...

要统一的模式

schemas

或者,一个模式列表

返回值

一个包含输入字段并集的Schema,如果任何schemasNULL,则返回NULL

示例

a <- schema(b = double(), c = bool())
z <- schema(b = double(), k = utf8())
unify_schemas(a, z)
#> Schema
#> b: double
#> c: bool
#> k: string