Copilot commented on code in PR #57:
URL: https://github.com/apache/sedona-db/pull/57#discussion_r2340163932


##########
rust/sedona-geoparquet/src/file_opener.rs:
##########
@@ -299,6 +314,9 @@ fn parse_column_coverings(
             if !metadata.columns.contains_key(field.name()) {
                 return Ok(None);
             }
+            if !is_prunable_geospatial_field(field) {
+                return Ok(None);
+            }

Review Comment:
   [nitpick] These two conditional checks can be combined for better 
readability: `if !metadata.columns.contains_key(field.name()) || 
!is_prunable_geospatial_field(field) { return Ok(None); }`
   ```suggestion
               if !metadata.columns.contains_key(field.name()) || 
!is_prunable_geospatial_field(field) {
                   return Ok(None);
               }
   ```



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