We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1f03f5 commit 34188b6Copy full SHA for 34188b6
1 file changed
native/core/src/parquet/schema_adapter.rs
@@ -431,10 +431,9 @@ impl SchemaMapper for SchemaMapping {
431
// If this field only exists in the table, and not in the file, then we need to
432
// populate a default value for it.
433
|| {
434
- if self.default_values.is_some() {
+ if let Some(default_values) = &self.default_values {
435
// We have a map of default values, see if this field is in there.
436
- if let Some(value) =
437
- self.default_values.as_ref().unwrap().get(&field_idx)
+ if let Some(value) = default_values.get(&field_idx)
438
// Default value exists, construct a column from it.
439
{
440
let cv = if field.data_type() == &value.data_type() {
0 commit comments