Skip to content

Commit

Permalink
fix unused warn
Browse files Browse the repository at this point in the history
  • Loading branch information
ZENOTME committed Aug 2, 2024
1 parent 9968f69 commit 72a9708
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/iceberg/src/avro/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ use itertools::{Either, Itertools};
use serde_json::{Number, Value};

use crate::spec::{
visit_schema, ListType, MapType, NestedField, NestedFieldRef, PrimitiveType, Schema, SchemaVisitor, StructType, Type
visit_schema, ListType, MapType, NestedField, NestedFieldRef, PrimitiveType, Schema,
SchemaVisitor, StructType, Type,
};
use crate::{ensure_data_valid, Error, ErrorKind, Result};

Expand Down Expand Up @@ -599,6 +600,9 @@ impl AvroSchemaVisitor for AvroSchemaToSchema {
}
}

// # TODO
// Fix this when we have used `avro_schema_to_schema` inner.
#[allow(unused)]
/// Converts avro schema to iceberg schema.
pub(crate) fn avro_schema_to_schema(avro_schema: &AvroSchema) -> Result<Schema> {
if let AvroSchema::Record(_) = avro_schema {
Expand Down

0 comments on commit 72a9708

Please sign in to comment.