You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "tustvold (via GitHub)" <gi...@apache.org> on 2023/05/01 16:51:34 UTC

[GitHub] [arrow-datafusion] tustvold opened a new pull request, #6183: Faster ListingTable partition listing (#6182)

tustvold opened a new pull request, #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183

   _Draft as would probably benefit from additional test coverage / cleanup_
   # Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
   -->
   
   Closes #6182
   
   # Rationale for this change
   
   <!--
    Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
    Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.  
   -->
   
   There were reports of slow listing performance
   
   # What changes are included in this PR?
   
   <!--
   There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   # Are these changes tested?
   
   <!--
   We typically require tests for all PRs in order to:
   1. Prevent the code from being accidentally broken by subsequent changes
   2. Serve as another way to document the expected behavior of the code
   
   If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
   -->
   
   # Are there any user-facing changes?
   
   <!--
   If there are user-facing changes then we may require documentation to be updated before approving the PR.
   -->
   
   <!--
   If there are any breaking changes to public APIs, please add the `api change` label.
   -->


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


[GitHub] [arrow-datafusion] tustvold commented on a diff in pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#discussion_r1182394829


##########
datafusion/core/src/datasource/listing/url.rs:
##########
@@ -150,11 +150,8 @@ impl ListingTableUrl {
         path: &'b Path,
     ) -> Option<impl Iterator<Item = &'b str> + 'a> {
         use object_store::path::DELIMITER;
-        let path: &str = path.as_ref();
-        let stripped = match self.prefix.as_ref() {
-            "" => path,
-            p => path.strip_prefix(p)?.strip_prefix(DELIMITER)?,
-        };
+        let stripped = path.as_ref().strip_prefix(self.prefix.as_ref())?;

Review Comment:
   The previous logic would return None for an exact match



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


[GitHub] [arrow-datafusion] tustvold commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1549754370

   > Still debugging this, I noticed this error:
   
   Aah, I worried that might happen, we should probably limit the maximum number of concurrent requests when listing the partitions. Will push a fix later today


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


[GitHub] [arrow-datafusion] alamb commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1551957250

   Schema inference PR : https://github.com/apache/arrow-datafusion/pull/6366


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


[GitHub] [arrow-datafusion] tustvold commented on a diff in pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#discussion_r1181715419


##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -152,225 +146,224 @@ pub fn split_files(
         .collect()
 }
 
+struct Partition {
+    path: Path,
+    depth: usize,
+    files: Option<Vec<ObjectMeta>>,
+}
+
+impl Partition {
+    async fn list(mut self, store: &dyn ObjectStore) -> Result<(Self, Vec<Path>)> {
+        let prefix = Some(&self.path).filter(|p| !p.as_ref().is_empty());
+        let result = store.list_with_delimiter(prefix).await?;
+        self.files = Some(result.objects);
+        Ok((self, result.common_prefixes))
+    }
+}
+
+/// Returns a recursive list of the partitions in `table_path` up to `max_depth`
+async fn list_partitions(
+    store: &dyn ObjectStore,
+    table_path: &ListingTableUrl,
+    max_depth: usize,
+) -> Result<Vec<Partition>> {
+    let partition = Partition {
+        path: table_path.prefix().clone(),
+        depth: 0,
+        files: None,
+    };
+
+    let mut out = Vec::with_capacity(64);
+    let mut futures = FuturesUnordered::new();
+    futures.push(partition.list(store));
+
+    while let Some((partition, paths)) = futures.next().await.transpose()? {
+        let depth = partition.depth;
+        out.push(partition);
+        for path in paths {
+            let child = Partition {
+                path,
+                depth: depth + 1,
+                files: None,
+            };
+            match depth < max_depth {
+                true => futures.push(child.list(store)),
+                false => out.push(child),
+            }
+        }
+    }
+    Ok(out)
+}
+
+async fn prune_partitions(
+    table_path: &ListingTableUrl,
+    partitions: Vec<Partition>,
+    filters: &[Expr],
+    partition_cols: &[(String, DataType)],
+) -> Result<Vec<Partition>> {
+    if filters.is_empty() {
+        return Ok(partitions);
+    }
+
+    let mut builders: Vec<_> = (0..partition_cols.len())
+        .map(|_| StringBuilder::with_capacity(partitions.len(), partitions.len() * 10))
+        .collect();
+
+    for partition in &partitions {
+        let cols = partition_cols.iter().map(|x| x.0.as_str());
+        let parsed = parse_partitions_for_path(&table_path, &partition.path, cols)
+            .unwrap_or_default();
+
+        let mut builders = builders.iter_mut();
+        for (p, b) in parsed.iter().zip(&mut builders) {
+            b.append_value(p);
+        }
+        builders.for_each(|b| b.append_null());
+    }
+
+    let arrays = partition_cols
+        .iter()
+        .zip(builders)
+        .map(|((_, d), mut builder)| {
+            let array = builder.finish();
+            cast(&array, d)
+        })
+        .collect::<Result<_, _>>()?;
+
+    let fields: Fields = partition_cols
+        .into_iter()
+        .map(|(n, d)| Field::new(n, d.clone(), true))
+        .collect();
+    let schema = Arc::new(Schema::new(fields));
+
+    let df_schema = DFSchema::new_with_metadata(
+        partition_cols
+            .into_iter()
+            .map(|(n, d)| DFField::new_unqualified(n, d.clone(), true))
+            .collect(),
+        Default::default(),
+    )?;
+
+    let batch = RecordBatch::try_new(schema.clone(), arrays)?;
+
+    // TODO: Plumb this down

Review Comment:
   This was a pre-existing issue



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


[GitHub] [arrow-datafusion] tustvold commented on a diff in pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#discussion_r1196384301


##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -610,98 +622,27 @@ mod tests {
             parse_partitions_for_path(
                 &ListingTableUrl::parse("file:///bucket/mytable").unwrap(),
                 &Path::from("bucket/mytable/v1/file.csv"),
-                &[String::from("mypartition")]
+                vec!["mypartition"]
             )
         );
         assert_eq!(
             Some(vec!["v1", "v2"]),
             parse_partitions_for_path(
                 &ListingTableUrl::parse("file:///bucket/mytable").unwrap(),
                 &Path::from("bucket/mytable/mypartition=v1/otherpartition=v2/file.csv"),
-                &[String::from("mypartition"), String::from("otherpartition")]
+                vec!["mypartition", "otherpartition"]
             )
         );
         assert_eq!(
             Some(vec!["v1"]),
             parse_partitions_for_path(
                 &ListingTableUrl::parse("file:///bucket/mytable").unwrap(),
                 &Path::from("bucket/mytable/mypartition=v1/otherpartition=v2/file.csv"),
-                &[String::from("mypartition")]
+                vec!["mypartition"]
             )
         );
     }
 
-    #[test]
-    fn test_path_batch_roundtrip_no_partiton() {

Review Comment:
   This is testing logic that no longer exists, we no longer encode filenames to a RecordBatch, filter it and convert it back, instead evaluating the expressions 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: github-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-datafusion] tustvold commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1536289308

   @kylebrooks-8451 did you manage to give this a go and did it help your use-case?


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


[GitHub] [arrow-datafusion] tustvold commented on a diff in pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#discussion_r1196378930


##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -153,225 +151,239 @@ pub fn split_files(
         .collect()
 }
 
+struct Partition {
+    path: Path,
+    depth: usize,
+    files: Option<Vec<ObjectMeta>>,
+}
+
+impl Partition {
+    async fn list(mut self, store: &dyn ObjectStore) -> Result<(Self, Vec<Path>)> {
+        trace!("Listing partition {}", self.path);
+        let prefix = Some(&self.path).filter(|p| !p.as_ref().is_empty());
+        let result = store.list_with_delimiter(prefix).await?;
+        self.files = Some(result.objects);
+        Ok((self, result.common_prefixes))
+    }
+}
+
+/// Returns a recursive list of the partitions in `table_path` up to `max_depth`
+async fn list_partitions(
+    store: &dyn ObjectStore,
+    table_path: &ListingTableUrl,
+    max_depth: usize,
+) -> Result<Vec<Partition>> {
+    let partition = Partition {
+        path: table_path.prefix().clone(),
+        depth: 0,
+        files: None,
+    };
+
+    let mut out = Vec::with_capacity(64);
+
+    let mut pending = vec![];
+    let mut futures = FuturesUnordered::new();
+    futures.push(partition.list(store));
+
+    while let Some((partition, paths)) = futures.next().await.transpose()? {
+        if let Some(next) = pending.pop() {

Review Comment:
   Each iteration of the loop can at most complete one future, therefore freeing up at most one "slot" in futures. If `pending` contains anything it implies that we were at CONCURRENCY_LIMIT before we polled futures



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


[GitHub] [arrow-datafusion] alamb commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1550363707

   >  For some perspective, this PR is able to list a ~27,000 partition table in Azure Blob storage in 7 seconds whereas the PyArrow Dataset for the same table the adlfs fsspec FileSystem takes 2.5 minutes. The old DataFusion code before this PR never finished after waiting > 10 minutes. Fantastic work @tustvold!
   
   🎉  that is amazing -- thank you for the measurement @kylebrooks-8451 
   


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


[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#discussion_r1195663514


##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -153,225 +151,239 @@ pub fn split_files(
         .collect()
 }
 
+struct Partition {

Review Comment:
   I think adding some comments about specifically what `depth` and `files` fields mean would help readability. Like are the files only files or do they include paths and what does `depth` signify?



##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -153,225 +151,239 @@ pub fn split_files(
         .collect()
 }
 
+struct Partition {
+    path: Path,
+    depth: usize,
+    files: Option<Vec<ObjectMeta>>,
+}
+
+impl Partition {
+    async fn list(mut self, store: &dyn ObjectStore) -> Result<(Self, Vec<Path>)> {
+        trace!("Listing partition {}", self.path);
+        let prefix = Some(&self.path).filter(|p| !p.as_ref().is_empty());
+        let result = store.list_with_delimiter(prefix).await?;
+        self.files = Some(result.objects);
+        Ok((self, result.common_prefixes))
+    }
+}
+
+/// Returns a recursive list of the partitions in `table_path` up to `max_depth`
+async fn list_partitions(
+    store: &dyn ObjectStore,
+    table_path: &ListingTableUrl,
+    max_depth: usize,
+) -> Result<Vec<Partition>> {
+    let partition = Partition {
+        path: table_path.prefix().clone(),
+        depth: 0,
+        files: None,
+    };
+
+    let mut out = Vec::with_capacity(64);
+
+    let mut pending = vec![];
+    let mut futures = FuturesUnordered::new();
+    futures.push(partition.list(store));
+
+    while let Some((partition, paths)) = futures.next().await.transpose()? {
+        if let Some(next) = pending.pop() {
+            futures.push(next)
+        }
+
+        let depth = partition.depth;
+        out.push(partition);
+        for path in paths {
+            let child = Partition {
+                path,
+                depth: depth + 1,
+                files: None,
+            };
+            match depth < max_depth {
+                true => match futures.len() < CONCURRENCY_LIMIT {
+                    true => futures.push(child.list(store)),
+                    false => pending.push(child.list(store)),
+                },
+                false => out.push(child),
+            }
+        }
+    }
+    Ok(out)
+}
+
+async fn prune_partitions(
+    table_path: &ListingTableUrl,
+    partitions: Vec<Partition>,
+    filters: &[Expr],
+    partition_cols: &[(String, DataType)],
+) -> Result<Vec<Partition>> {
+    if filters.is_empty() {
+        return Ok(partitions);
+    }
+
+    let mut builders: Vec<_> = (0..partition_cols.len())
+        .map(|_| StringBuilder::with_capacity(partitions.len(), partitions.len() * 10))
+        .collect();
+
+    for partition in &partitions {
+        let cols = partition_cols.iter().map(|x| x.0.as_str());
+        let parsed = parse_partitions_for_path(table_path, &partition.path, cols)
+            .unwrap_or_default();
+
+        let mut builders = builders.iter_mut();
+        for (p, b) in parsed.iter().zip(&mut builders) {
+            b.append_value(p);
+        }
+        builders.for_each(|b| b.append_null());
+    }
+
+    let arrays = partition_cols
+        .iter()
+        .zip(builders)
+        .map(|((_, d), mut builder)| {
+            let array = builder.finish();
+            cast(&array, d)
+        })
+        .collect::<Result<_, _>>()?;
+
+    let fields: Fields = partition_cols
+        .iter()
+        .map(|(n, d)| Field::new(n, d.clone(), true))
+        .collect();
+    let schema = Arc::new(Schema::new(fields));
+
+    let df_schema = DFSchema::new_with_metadata(
+        partition_cols
+            .iter()
+            .map(|(n, d)| DFField::new_unqualified(n, d.clone(), true))
+            .collect(),
+        Default::default(),
+    )?;
+
+    let batch = RecordBatch::try_new(schema.clone(), arrays)?;
+
+    // TODO: Plumb this down
+    let props = ExecutionProps::new();
+
+    // Applies `filter` to `batch` returning `None` on error
+    let do_filter = |filter| -> Option<ArrayRef> {
+        let expr = create_physical_expr(filter, &df_schema, &schema, &props).ok()?;
+        Some(expr.evaluate(&batch).ok()?.into_array(partitions.len()))
+    };
+
+    //.Compute the conjunction of the filters, ignoring errors
+    let mask = filters
+        .iter()
+        .fold(None, |acc, filter| match (acc, do_filter(filter)) {
+            (Some(a), Some(b)) => Some(and(&a, b.as_boolean()).unwrap_or(a)),
+            (None, Some(r)) => Some(r.as_boolean().clone()),
+            (r, None) => r,
+        });
+
+    let mask = match mask {
+        Some(mask) => mask,
+        None => return Ok(partitions),
+    };
+
+    // Don't retain partitions that evaluated to null
+    let prepared = match mask.null_count() {
+        0 => mask,
+        _ => prep_null_mask_filter(&mask),
+    };
+
+    // Sanity check
+    assert_eq!(prepared.len(), partitions.len());
+
+    let filtered = partitions
+        .into_iter()
+        .zip(prepared.values())
+        .filter_map(|(p, f)| f.then_some(p))
+        .collect();
+
+    Ok(filtered)
+}
+
 /// Discover the partitions on the given path and prune out files
 /// that belong to irrelevant partitions using `filters` expressions.
 /// `filters` might contain expressions that can be resolved only at the
 /// file level (e.g. Parquet row group pruning).
-///
-/// TODO for tables with many files (10k+), it will usually more efficient
-/// to first list the folders relative to the first partition dimension,
-/// prune those, then list only the contain of the remaining folders.
 pub async fn pruned_partition_list<'a>(
     store: &'a dyn ObjectStore,
     table_path: &'a ListingTableUrl,
     filters: &'a [Expr],
     file_extension: &'a str,
-    table_partition_cols: &'a [(String, DataType)],
+    partition_cols: &'a [(String, DataType)],
 ) -> Result<BoxStream<'a, Result<PartitionedFile>>> {
     let list = table_path.list_all_files(store, file_extension);
 
     // if no partition col => simply list all the files
-    if table_partition_cols.is_empty() {
+    if partition_cols.is_empty() {
         return Ok(Box::pin(list.map_ok(|object_meta| object_meta.into())));
     }
 
-    let applicable_filters: Vec<_> = filters
-        .iter()
-        .filter(|f| {
-            expr_applicable_for_cols(
-                &table_partition_cols
-                    .iter()
-                    .map(|x| x.0.clone())
-                    .collect::<Vec<_>>(),
-                f,
-            )
-        })
-        .collect();
+    let partitions = list_partitions(store, table_path, partition_cols.len()).await?;
+    info!("Listed {} partitions", partitions.len());

Review Comment:
   I recommend this be `debug` as it is not likely useful for general operation



##########
datafusion/core/src/datasource/listing/url.rs:
##########
@@ -158,17 +176,7 @@ impl ListingTableUrl {
             .try_filter(move |meta| {
                 let path = &meta.location;
                 let extension_match = path.as_ref().ends_with(file_extension);
-                let glob_match = match &self.glob {
-                    Some(glob) => match self.strip_prefix(path) {
-                        Some(mut segments) => {
-                            let stripped = segments.join("/");
-                            glob.matches(&stripped)
-                        }
-                        None => false,
-                    },
-                    None => true,
-                };
-
+                let glob_match = self.contains(path);

Review Comment:
   this is a nice refactoring



##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -610,98 +622,27 @@ mod tests {
             parse_partitions_for_path(
                 &ListingTableUrl::parse("file:///bucket/mytable").unwrap(),
                 &Path::from("bucket/mytable/v1/file.csv"),
-                &[String::from("mypartition")]
+                vec!["mypartition"]
             )
         );
         assert_eq!(
             Some(vec!["v1", "v2"]),
             parse_partitions_for_path(
                 &ListingTableUrl::parse("file:///bucket/mytable").unwrap(),
                 &Path::from("bucket/mytable/mypartition=v1/otherpartition=v2/file.csv"),
-                &[String::from("mypartition"), String::from("otherpartition")]
+                vec!["mypartition", "otherpartition"]
             )
         );
         assert_eq!(
             Some(vec!["v1"]),
             parse_partitions_for_path(
                 &ListingTableUrl::parse("file:///bucket/mytable").unwrap(),
                 &Path::from("bucket/mytable/mypartition=v1/otherpartition=v2/file.csv"),
-                &[String::from("mypartition")]
+                vec!["mypartition"]
             )
         );
     }
 
-    #[test]
-    fn test_path_batch_roundtrip_no_partiton() {

Review Comment:
   What were these tests removed?



##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -153,225 +151,239 @@ pub fn split_files(
         .collect()
 }
 
+struct Partition {
+    path: Path,
+    depth: usize,
+    files: Option<Vec<ObjectMeta>>,
+}
+
+impl Partition {
+    async fn list(mut self, store: &dyn ObjectStore) -> Result<(Self, Vec<Path>)> {
+        trace!("Listing partition {}", self.path);
+        let prefix = Some(&self.path).filter(|p| !p.as_ref().is_empty());
+        let result = store.list_with_delimiter(prefix).await?;
+        self.files = Some(result.objects);
+        Ok((self, result.common_prefixes))
+    }
+}
+
+/// Returns a recursive list of the partitions in `table_path` up to `max_depth`
+async fn list_partitions(
+    store: &dyn ObjectStore,
+    table_path: &ListingTableUrl,
+    max_depth: usize,
+) -> Result<Vec<Partition>> {
+    let partition = Partition {
+        path: table_path.prefix().clone(),
+        depth: 0,
+        files: None,
+    };
+
+    let mut out = Vec::with_capacity(64);
+
+    let mut pending = vec![];
+    let mut futures = FuturesUnordered::new();
+    futures.push(partition.list(store));
+
+    while let Some((partition, paths)) = futures.next().await.transpose()? {
+        if let Some(next) = pending.pop() {
+            futures.push(next)
+        }
+
+        let depth = partition.depth;
+        out.push(partition);
+        for path in paths {
+            let child = Partition {
+                path,
+                depth: depth + 1,
+                files: None,
+            };
+            match depth < max_depth {
+                true => match futures.len() < CONCURRENCY_LIMIT {
+                    true => futures.push(child.list(store)),
+                    false => pending.push(child.list(store)),
+                },
+                false => out.push(child),
+            }
+        }
+    }
+    Ok(out)
+}
+
+async fn prune_partitions(
+    table_path: &ListingTableUrl,
+    partitions: Vec<Partition>,
+    filters: &[Expr],
+    partition_cols: &[(String, DataType)],
+) -> Result<Vec<Partition>> {
+    if filters.is_empty() {
+        return Ok(partitions);
+    }
+
+    let mut builders: Vec<_> = (0..partition_cols.len())
+        .map(|_| StringBuilder::with_capacity(partitions.len(), partitions.len() * 10))
+        .collect();
+
+    for partition in &partitions {
+        let cols = partition_cols.iter().map(|x| x.0.as_str());
+        let parsed = parse_partitions_for_path(table_path, &partition.path, cols)
+            .unwrap_or_default();
+
+        let mut builders = builders.iter_mut();
+        for (p, b) in parsed.iter().zip(&mut builders) {
+            b.append_value(p);
+        }
+        builders.for_each(|b| b.append_null());
+    }
+
+    let arrays = partition_cols
+        .iter()
+        .zip(builders)
+        .map(|((_, d), mut builder)| {
+            let array = builder.finish();
+            cast(&array, d)
+        })
+        .collect::<Result<_, _>>()?;
+
+    let fields: Fields = partition_cols
+        .iter()
+        .map(|(n, d)| Field::new(n, d.clone(), true))
+        .collect();
+    let schema = Arc::new(Schema::new(fields));
+
+    let df_schema = DFSchema::new_with_metadata(
+        partition_cols
+            .iter()
+            .map(|(n, d)| DFField::new_unqualified(n, d.clone(), true))
+            .collect(),
+        Default::default(),
+    )?;
+
+    let batch = RecordBatch::try_new(schema.clone(), arrays)?;
+
+    // TODO: Plumb this down
+    let props = ExecutionProps::new();
+
+    // Applies `filter` to `batch` returning `None` on error
+    let do_filter = |filter| -> Option<ArrayRef> {
+        let expr = create_physical_expr(filter, &df_schema, &schema, &props).ok()?;
+        Some(expr.evaluate(&batch).ok()?.into_array(partitions.len()))
+    };
+
+    //.Compute the conjunction of the filters, ignoring errors
+    let mask = filters
+        .iter()
+        .fold(None, |acc, filter| match (acc, do_filter(filter)) {
+            (Some(a), Some(b)) => Some(and(&a, b.as_boolean()).unwrap_or(a)),
+            (None, Some(r)) => Some(r.as_boolean().clone()),
+            (r, None) => r,
+        });
+
+    let mask = match mask {
+        Some(mask) => mask,
+        None => return Ok(partitions),
+    };
+
+    // Don't retain partitions that evaluated to null
+    let prepared = match mask.null_count() {
+        0 => mask,
+        _ => prep_null_mask_filter(&mask),
+    };
+
+    // Sanity check
+    assert_eq!(prepared.len(), partitions.len());
+
+    let filtered = partitions
+        .into_iter()
+        .zip(prepared.values())
+        .filter_map(|(p, f)| f.then_some(p))
+        .collect();
+
+    Ok(filtered)
+}
+
 /// Discover the partitions on the given path and prune out files
 /// that belong to irrelevant partitions using `filters` expressions.
 /// `filters` might contain expressions that can be resolved only at the
 /// file level (e.g. Parquet row group pruning).
-///
-/// TODO for tables with many files (10k+), it will usually more efficient
-/// to first list the folders relative to the first partition dimension,
-/// prune those, then list only the contain of the remaining folders.
 pub async fn pruned_partition_list<'a>(
     store: &'a dyn ObjectStore,
     table_path: &'a ListingTableUrl,
     filters: &'a [Expr],
     file_extension: &'a str,
-    table_partition_cols: &'a [(String, DataType)],
+    partition_cols: &'a [(String, DataType)],
 ) -> Result<BoxStream<'a, Result<PartitionedFile>>> {
     let list = table_path.list_all_files(store, file_extension);
 
     // if no partition col => simply list all the files
-    if table_partition_cols.is_empty() {
+    if partition_cols.is_empty() {
         return Ok(Box::pin(list.map_ok(|object_meta| object_meta.into())));
     }
 
-    let applicable_filters: Vec<_> = filters
-        .iter()
-        .filter(|f| {
-            expr_applicable_for_cols(
-                &table_partition_cols
-                    .iter()
-                    .map(|x| x.0.clone())
-                    .collect::<Vec<_>>(),
-                f,
-            )
-        })
-        .collect();
+    let partitions = list_partitions(store, table_path, partition_cols.len()).await?;
+    info!("Listed {} partitions", partitions.len());
 
-    if applicable_filters.is_empty() {
-        // Parse the partition values while listing all the files
-        // Note: We might avoid parsing the partition values if they are not used in any projection,
-        // but the cost of parsing will likely be far dominated by the time to fetch the listing from
-        // the object store.
-        Ok(Box::pin(list.try_filter_map(
-            move |object_meta| async move {
-                let parsed_path = parse_partitions_for_path(
-                    table_path,
-                    &object_meta.location,
-                    &table_partition_cols
-                        .iter()
-                        .map(|x| x.0.clone())
-                        .collect::<Vec<_>>(),
-                )
-                .map(|p| {
-                    p.iter()
-                        .zip(table_partition_cols)
-                        .map(|(&part_value, part_column)| {
-                            ScalarValue::try_from_string(
-                                part_value.to_string(),
-                                &part_column.1,
-                            )
-                            .unwrap_or_else(|_| {
-                                panic!(
-                                    "Failed to cast str {} to type {}",
-                                    part_value, part_column.1
-                                )
-                            })
-                        })
-                        .collect()
-                });
-
-                Ok(parsed_path.map(|partition_values| PartitionedFile {
-                    partition_values,
-                    object_meta,
-                    range: None,
-                    extensions: None,
-                }))
-            },
-        )))
-    } else {
-        // parse the partition values and serde them as a RecordBatch to filter them
-        let metas: Vec<_> = list.try_collect().await?;
-        let batch = paths_to_batch(table_partition_cols, table_path, &metas)?;
-        let mem_table = MemTable::try_new(batch.schema(), vec![vec![batch]])?;
-        debug!("get mem_table: {:?}", mem_table);
-
-        // Filter the partitions using a local datafusion context
-        // TODO having the external context would allow us to resolve `Volatility::Stable`
-        // scalar functions (`ScalarFunction` & `ScalarUDF`) and `ScalarVariable`s
-        let ctx = SessionContext::new();
-        let mut df = ctx.read_table(Arc::new(mem_table))?;
-        for filter in applicable_filters {
-            df = df.filter(filter.clone())?;
-        }
-        let filtered_batches = df.collect().await?;
-        let paths = batches_to_paths(&filtered_batches)?;
+    let pruned =
+        prune_partitions(table_path, partitions, filters, partition_cols).await?;
 
-        Ok(Box::pin(futures::stream::iter(paths.into_iter().map(Ok))))
-    }
-}
+    info!("Pruning yielded {} partitions", pruned.len());

Review Comment:
   Likewise, I recommend `debug!` here as well



##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -153,225 +151,239 @@ pub fn split_files(
         .collect()
 }
 
+struct Partition {
+    path: Path,
+    depth: usize,
+    files: Option<Vec<ObjectMeta>>,
+}
+
+impl Partition {
+    async fn list(mut self, store: &dyn ObjectStore) -> Result<(Self, Vec<Path>)> {
+        trace!("Listing partition {}", self.path);
+        let prefix = Some(&self.path).filter(|p| !p.as_ref().is_empty());
+        let result = store.list_with_delimiter(prefix).await?;
+        self.files = Some(result.objects);
+        Ok((self, result.common_prefixes))
+    }
+}
+
+/// Returns a recursive list of the partitions in `table_path` up to `max_depth`
+async fn list_partitions(
+    store: &dyn ObjectStore,
+    table_path: &ListingTableUrl,
+    max_depth: usize,
+) -> Result<Vec<Partition>> {
+    let partition = Partition {
+        path: table_path.prefix().clone(),
+        depth: 0,
+        files: None,
+    };
+
+    let mut out = Vec::with_capacity(64);
+
+    let mut pending = vec![];
+    let mut futures = FuturesUnordered::new();
+    futures.push(partition.list(store));
+
+    while let Some((partition, paths)) = futures.next().await.transpose()? {
+        if let Some(next) = pending.pop() {

Review Comment:
   Is there an invariant that if pending is non empty, then futures.len() prior to the loop is `CONCURRENCY_LIMT`? I am trying work out why only one pending future pushed to `futures` rather than pushing while `futures.len() < CONCURRENCY_LIMIT`



##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -152,225 +146,224 @@ pub fn split_files(
         .collect()
 }
 
+struct Partition {
+    path: Path,
+    depth: usize,
+    files: Option<Vec<ObjectMeta>>,
+}
+
+impl Partition {
+    async fn list(mut self, store: &dyn ObjectStore) -> Result<(Self, Vec<Path>)> {
+        let prefix = Some(&self.path).filter(|p| !p.as_ref().is_empty());
+        let result = store.list_with_delimiter(prefix).await?;
+        self.files = Some(result.objects);
+        Ok((self, result.common_prefixes))
+    }
+}
+
+/// Returns a recursive list of the partitions in `table_path` up to `max_depth`
+async fn list_partitions(
+    store: &dyn ObjectStore,
+    table_path: &ListingTableUrl,
+    max_depth: usize,
+) -> Result<Vec<Partition>> {
+    let partition = Partition {
+        path: table_path.prefix().clone(),
+        depth: 0,
+        files: None,
+    };
+
+    let mut out = Vec::with_capacity(64);
+    let mut futures = FuturesUnordered::new();
+    futures.push(partition.list(store));
+
+    while let Some((partition, paths)) = futures.next().await.transpose()? {
+        let depth = partition.depth;
+        out.push(partition);
+        for path in paths {
+            let child = Partition {
+                path,
+                depth: depth + 1,
+                files: None,
+            };
+            match depth < max_depth {
+                true => futures.push(child.list(store)),
+                false => out.push(child),
+            }
+        }
+    }
+    Ok(out)
+}
+
+async fn prune_partitions(
+    table_path: &ListingTableUrl,
+    partitions: Vec<Partition>,
+    filters: &[Expr],
+    partition_cols: &[(String, DataType)],
+) -> Result<Vec<Partition>> {
+    if filters.is_empty() {
+        return Ok(partitions);
+    }
+
+    let mut builders: Vec<_> = (0..partition_cols.len())
+        .map(|_| StringBuilder::with_capacity(partitions.len(), partitions.len() * 10))
+        .collect();
+
+    for partition in &partitions {
+        let cols = partition_cols.iter().map(|x| x.0.as_str());
+        let parsed = parse_partitions_for_path(&table_path, &partition.path, cols)
+            .unwrap_or_default();
+
+        let mut builders = builders.iter_mut();
+        for (p, b) in parsed.iter().zip(&mut builders) {
+            b.append_value(p);
+        }
+        builders.for_each(|b| b.append_null());
+    }
+
+    let arrays = partition_cols
+        .iter()
+        .zip(builders)
+        .map(|((_, d), mut builder)| {
+            let array = builder.finish();
+            cast(&array, d)
+        })
+        .collect::<Result<_, _>>()?;
+
+    let fields: Fields = partition_cols
+        .into_iter()
+        .map(|(n, d)| Field::new(n, d.clone(), true))
+        .collect();
+    let schema = Arc::new(Schema::new(fields));
+
+    let df_schema = DFSchema::new_with_metadata(
+        partition_cols
+            .into_iter()
+            .map(|(n, d)| DFField::new_unqualified(n, d.clone(), true))
+            .collect(),
+        Default::default(),
+    )?;
+
+    let batch = RecordBatch::try_new(schema.clone(), arrays)?;
+
+    // TODO: Plumb this down

Review Comment:
   I think it was even worse (the old code creates an entire `SessionContext` 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: github-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-datafusion] tustvold commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1550005061

   > The inferred schema is only partition columns no actual data from parquet.
   
   Is it possible your query has predicates that aren't satisfied by any of the partitions, i.e. it is pruning everything out?


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


[GitHub] [arrow-datafusion] tustvold commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1549565875

   > Azure VM
   
   Aah, I didn't realise this was Azure... Azure Blob Storage is notoriously slow, still we should be able to at least match fsspec.


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


[GitHub] [arrow-datafusion] kylebrooks-8451 commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "kylebrooks-8451 (via GitHub)" <gi...@apache.org>.
kylebrooks-8451 commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1549546174

   > @kylebrooks-8451 did you manage to give this a go and did it help your use-case?
   
   @tustvold - We did test this on a very large table, we gave it 10 minutes to list and it still was running. For reference, PyArrow with adlfs fsspec takes around 2-3 minutes on this same table. Let me test it again on this latest commit.


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


[GitHub] [arrow-datafusion] tustvold commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1550135951

   Following some investigation with @kylebrooks-8451 I believe the conclusions to be:
   
   * This PR drastically improves the listing performance for queries
   * Work still remains to make schema inference comparably fast


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


[GitHub] [arrow-datafusion] tustvold commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1549555543

   > we gave it 10 minutes to list and it still was running
   
   That is disappointing, I presume you are running in release mode? I will push a commit that adds some logs so that we can get some insight into what it is spending its time doing


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


[GitHub] [arrow-datafusion] kylebrooks-8451 commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "kylebrooks-8451 (via GitHub)" <gi...@apache.org>.
kylebrooks-8451 commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1549730700

   Still debugging this, I noticed this error:
   ```
   Error: ObjectStore(Generic { store: "MicrosoftAzure", source: ListRequest { source: Error { retries: 0, message: "request error", source: Some(reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("[redacted].blob.core.windows.net")), port: None, path: "/[redacted]", query: Some("restype=container&comp=list&prefix=[redacted]&delimiter=[redacted]"), fragment: None }, source: hyper::Error(Connect, ConnectError("tcp open error", Os { code: 24, kind: Uncategorized, message: "Too many open files" })) }) } } })
   ```


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


[GitHub] [arrow-datafusion] alamb commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1550332421

   > Work still remains to make schema inference comparably fast
   
   I can file a ticket for this if you would like


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


[GitHub] [arrow-datafusion] kylebrooks-8451 commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "kylebrooks-8451 (via GitHub)" <gi...@apache.org>.
kylebrooks-8451 commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1549561650

   > > we gave it 10 minutes to list and it still was running
   > 
   > That is disappointing, I presume you are running in release mode? I will push a commit that adds some logs so that we can get some insight into what it is spending its time doing
   
   I see the commit to add logs. Let me build this in release on an Azure VM and try to run against our largest parquet dataset.


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


[GitHub] [arrow-datafusion] tustvold commented on a diff in pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#discussion_r1196378930


##########
datafusion/core/src/datasource/listing/helpers.rs:
##########
@@ -153,225 +151,239 @@ pub fn split_files(
         .collect()
 }
 
+struct Partition {
+    path: Path,
+    depth: usize,
+    files: Option<Vec<ObjectMeta>>,
+}
+
+impl Partition {
+    async fn list(mut self, store: &dyn ObjectStore) -> Result<(Self, Vec<Path>)> {
+        trace!("Listing partition {}", self.path);
+        let prefix = Some(&self.path).filter(|p| !p.as_ref().is_empty());
+        let result = store.list_with_delimiter(prefix).await?;
+        self.files = Some(result.objects);
+        Ok((self, result.common_prefixes))
+    }
+}
+
+/// Returns a recursive list of the partitions in `table_path` up to `max_depth`
+async fn list_partitions(
+    store: &dyn ObjectStore,
+    table_path: &ListingTableUrl,
+    max_depth: usize,
+) -> Result<Vec<Partition>> {
+    let partition = Partition {
+        path: table_path.prefix().clone(),
+        depth: 0,
+        files: None,
+    };
+
+    let mut out = Vec::with_capacity(64);
+
+    let mut pending = vec![];
+    let mut futures = FuturesUnordered::new();
+    futures.push(partition.list(store));
+
+    while let Some((partition, paths)) = futures.next().await.transpose()? {
+        if let Some(next) = pending.pop() {

Review Comment:
   Each iteration of the loop can at most complete one future, therefore freeing up at most one "slot" in futures. If `pending` contains anything it implies that we were at CONCURRENCY_LIMIT before we polled futures, and therefore can only add at most one future



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


[GitHub] [arrow-datafusion] tustvold merged pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold merged PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183


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


[GitHub] [arrow-datafusion] tustvold commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1549032300

   Marking as ready for review, as resolves a longstanding todo, and should scale significantly better.


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


[GitHub] [arrow-datafusion] kylebrooks-8451 commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "kylebrooks-8451 (via GitHub)" <gi...@apache.org>.
kylebrooks-8451 commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1549988998

   @tustvold  It's working now and very fast, 7 seconds for this table. I'm worried this might not be real results because it seems to not be reading any parquet files only the partition folder. The inferred schema is only partition columns no actual data from parquet.
   
   Is there some setting I'm missing to read the files / infer their schema?


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


[GitHub] [arrow-datafusion] kylebrooks-8451 commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "kylebrooks-8451 (via GitHub)" <gi...@apache.org>.
kylebrooks-8451 commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1550338507

   For some perspective, this PR is able to list a ~27,000 partition table in Azure Blob storage in 7 seconds whereas the PyArrow Dataset for the same table the adlfs fsspec FileSystem takes 2.5 minutes. The old DataFusion code before this PR never finished after waiting > 10 minutes. Fantastic work @tustvold!


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


[GitHub] [arrow-datafusion] kylebrooks-8451 commented on pull request #6183: Faster ListingTable partition listing (#6182)

Posted by "kylebrooks-8451 (via GitHub)" <gi...@apache.org>.
kylebrooks-8451 commented on PR #6183:
URL: https://github.com/apache/arrow-datafusion/pull/6183#issuecomment-1530559019

   I'll give this a try tomorrow, thanks for this!


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