etseidl commented on code in PR #9153:
URL: https://github.com/apache/arrow-rs/pull/9153#discussion_r2688490593


##########
parquet/src/arrow/arrow_reader/mod.rs:
##########
@@ -321,16 +321,19 @@ impl<T> ArrowReaderBuilder<T> {
     /// # let file = File::open(&path)?;
     /// let builder = ParquetRecordBatchReaderBuilder::try_new(file)?;
     /// let schema_desc = 
builder.metadata().file_metadata().schema_descr_ptr();
-    ///
-    /// // Create predicate: column id > 4. This col has index 0.
+    /// // Create predicate that evaluates `int_col != 1`.
+    /// // `int_col` column has index 4 (zero based) in the schema
     /// let projection = ProjectionMask::leaves(&schema_desc, [0]);

Review Comment:
   ```suggestion
       /// let projection = ProjectionMask::leaves(&schema_desc, [4]);
   ```
   
   projection is against the original schema, right?



-- 
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]

Reply via email to