alamb commented on code in PR #18575:
URL: https://github.com/apache/datafusion/pull/18575#discussion_r2515718279


##########
datafusion/datasource-parquet/src/reader.rs:
##########
@@ -314,3 +334,56 @@ impl FileMetadata for CachedParquetMetaData {
         HashMap::from([("page_index".to_owned(), page_index.to_string())])
     }
 }
+
+#[cfg(test)]
+mod tests {
+    use super::*;
+    use datafusion_execution::cache::cache_unit::DefaultFilesMetadataCache;
+    use object_store::{memory::InMemory, path::Path, ObjectMeta, ObjectStore};
+
+    #[tokio::test]
+    async fn cached_parquet_file_reader() {

Review Comment:
   Instead of a test just to test new, how about changing the existing code to 
call `new()` rather than constructing `CachedParquetFileReader` directly?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to