You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/08 09:37:55 UTC

[GitHub] [arrow-rs] Ted-Jiang commented on a diff in pull request #2849: [feat] Add pub api for checking column index is sorted.

Ted-Jiang commented on code in PR #2849:
URL: https://github.com/apache/arrow-rs/pull/2849#discussion_r990618580


##########
parquet/src/file/page_index/index.rs:
##########
@@ -63,6 +64,29 @@ pub enum Index {
     FIXED_LEN_BYTE_ARRAY(ByteArrayIndex),
 }
 
+impl Index {
+    /// Return min/max elements inside ColumnIndex are ordered or not.
+    pub fn is_sorted(&self) -> bool {
+        match self {

Review Comment:
   Reasonable!



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org