Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
6.0.1
-
None
Description
StructTypes can be created with types:
struct(x = int32(), y = utf8())
But they cannot be created with fields yet. This means you cannot construct a StructType with a non-nullable field (since fields are nullable by default.) We should support constructing a StructType with fields, like we do for a Schema:
# Schema from fields schema(field("x", int32()), field(y, utf8(), nullable=FALSE)) # Expected StructType from fields struct(field("x", int32()), field(y, utf8(), nullable=FALSE))