We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46c0161 commit e8cc271Copy full SHA for e8cc271
1 file changed
datafusion-examples/examples/custom_data_source/adapter_serialization.rs
@@ -234,10 +234,10 @@ impl PhysicalExprAdapterFactory for MetadataAdapterFactory {
234
&self,
235
logical_file_schema: SchemaRef,
236
physical_file_schema: SchemaRef,
237
- ) -> Arc<dyn PhysicalExprAdapter> {
+ ) -> Result<Arc<dyn PhysicalExprAdapter>> {
238
let inner = DefaultPhysicalExprAdapterFactory
239
- .create(logical_file_schema, physical_file_schema);
240
- Arc::new(MetadataAdapter { inner })
+ .create(logical_file_schema, physical_file_schema)?;
+ Ok(Arc::new(MetadataAdapter { inner }))
241
}
242
243
0 commit comments