Skip to content

Apache DataFusion SQL Query Engine

Switch Unspecified to Required (#15011)

Bryce Mecum9a4c9d598ca9
diff --git a/datafusion/substrait/src/logical_plan/producer.rs b/datafusion/substrait/src/logical_plan/producer.rs
index e4df9703b2..fc24d5bb91 100644
--- a/datafusion/substrait/src/logical_plan/producer.rs
+++ b/datafusion/substrait/src/logical_plan/producer.rs
@@ -1039,7 +1039,7 @@ fn to_substrait_named_struct(schema: &DFSchemaRef) -> Result<NamedStruct> {
.map(|f| to_substrait_type(f.data_type(), f.is_nullable()))
.collect::<Result<_>>()?,
type_variation_reference: DEFAULT_TYPE_VARIATION_REF,
- nullability: r#type::Nullability::Unspecified as i32,
+ nullability: r#type::Nullability::Required as i32,
};
Ok(NamedStruct {