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

[GitHub] [arrow] mapleFU opened a new pull request, #36486: GH-34509: [C++][Parquet] Doc: fix comment for ArrowReaderProperties::batch_size

mapleFU opened a new pull request, #36486:
URL: https://github.com/apache/arrow/pull/36486

   <!--
   Thanks for opening a pull request!
   If this is your first pull request you can find detailed information on how 
   to contribute here:
     * [New Contributor's Guide](https://arrow.apache.org/docs/dev/developers/guide/step_by_step/pr_lifecycle.html#reviews-and-merge-of-the-pull-request)
     * [Contributing Overview](https://arrow.apache.org/docs/dev/developers/overview.html)
   
   
   If this is not a [minor PR](https://github.com/apache/arrow/blob/main/CONTRIBUTING.md#Minor-Fixes). Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose
   
   Opening GitHub issues ahead of time contributes to the [Openness](http://theapacheway.com/open/#:~:text=Openness%20allows%20new%20users%20the,must%20happen%20in%20the%20open.) of the Apache Arrow project.
   
   Then could you also rename the pull request title in the following format?
   
       GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
   
   or
   
       MINOR: [${COMPONENT}] ${SUMMARY}
   
   In the case of PARQUET issues on JIRA the title also supports:
   
       PARQUET-${JIRA_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
   
   -->
   
   ### 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.  
   -->
   
   Fixing document for `ArrowReaderProperties::batch_size`.
   
   ### 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.
   -->
   
   Update document in `ArrowReaderProperties::batch_size`
   
   ### 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)?
   -->
   
   no
   
   ### Are there any user-facing changes?
   
   no
   
   <!--
   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 uncomment the line below and explain which changes are breaking.
   -->
   <!-- **This PR includes breaking changes to public APIs.** -->
   
   <!--
   Please uncomment the line below (and provide explanation) if the changes fix either (a) a security vulnerability, (b) a bug that caused incorrect or invalid data to be produced, or (c) a bug that causes a crash (even when the API contract is upheld). We use this to highlight fixes to issues that may affect users without their knowledge. For this reason, fixing bugs that cause errors don't count, since those are usually obvious.
   -->
   <!-- **This PR contains a "Critical Fix".** -->


-- 
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] mapleFU commented on a diff in pull request #36486: GH-34509: [C++][Parquet] Doc: fix comment for ArrowReaderProperties::batch_size

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on code in PR #36486:
URL: https://github.com/apache/arrow/pull/36486#discussion_r1253366323


##########
cpp/src/parquet/properties.h:
##########
@@ -817,11 +817,12 @@ class PARQUET_EXPORT ArrowReaderProperties {
     }
   }
 
-  /// \brief Set the maximum number of rows to read into a chunk or record batch.
+  /// \brief Set the maximum number of rows to read into a arrow chunk or record batch.

Review Comment:
   done



-- 
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] mapleFU commented on pull request #36486: GH-34509: [C++][Parquet][Docs] Fix comment for ArrowReaderProperties::batch_size

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

   @pitrou would you mind take a look at this? Just a document update, because `ArrowReaderProperties::batch_size` just works on interfaces about `RecordBatch`, like async generate record batch, or `RecordBatchReader`


-- 
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] pitrou merged pull request #36486: GH-34509: [C++][Parquet] Improve docstrings for ArrowReaderProperties::batch_size

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


-- 
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] wgtmac commented on a diff in pull request #36486: GH-34509: [C++][Parquet] Doc: fix comment for ArrowReaderProperties::batch_size

Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on code in PR #36486:
URL: https://github.com/apache/arrow/pull/36486#discussion_r1253358297


##########
cpp/src/parquet/properties.h:
##########
@@ -817,11 +817,12 @@ class PARQUET_EXPORT ArrowReaderProperties {
     }
   }
 
-  /// \brief Set the maximum number of rows to read into a chunk or record batch.
+  /// \brief Set the maximum number of rows to read into a arrow chunk or record batch.

Review Comment:
   Then probably we should remove `chunk` here to reduce confusion



-- 
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] mapleFU commented on pull request #36486: GH-34509: [C++][Parquet] Doc: fix comment for ArrowReaderProperties::batch_size

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

   @XinyuZeng @wgtmac Mind take a look?


-- 
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] wgtmac commented on a diff in pull request #36486: GH-34509: [C++][Parquet] Doc: fix comment for ArrowReaderProperties::batch_size

Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on code in PR #36486:
URL: https://github.com/apache/arrow/pull/36486#discussion_r1253335258


##########
cpp/src/parquet/properties.h:
##########
@@ -817,11 +817,12 @@ class PARQUET_EXPORT ArrowReaderProperties {
     }
   }
 
-  /// \brief Set the maximum number of rows to read into a chunk or record batch.
+  /// \brief Set the maximum number of rows to read into a arrow chunk or record batch.
   ///
+  /// It's only for `arrow::RecordBatchReader` or RecordBatchGenerator.
   /// Will only be fewer rows when there are no more rows in the file.
   void set_batch_size(int64_t batch_size) { batch_size_ = batch_size; }
-  /// Return the batch size.
+  /// Return the batch size for `arrow::RecordBatchReader` or RecordBatchGenerator.

Review Comment:
   Would it be sufficient to simply say `it only applies to reading into RecordBatch`?



##########
cpp/src/parquet/properties.h:
##########
@@ -817,11 +817,12 @@ class PARQUET_EXPORT ArrowReaderProperties {
     }
   }
 
-  /// \brief Set the maximum number of rows to read into a chunk or record batch.
+  /// \brief Set the maximum number of rows to read into a arrow chunk or record batch.

Review Comment:
   ```suggestion
     /// \brief Set the maximum number of rows to read into an arrow chunk or record batch.
   ```
   
   BTW, what does arrow chunk mean?



-- 
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] mapleFU commented on a diff in pull request #36486: GH-34509: [C++][Parquet] Doc: fix comment for ArrowReaderProperties::batch_size

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on code in PR #36486:
URL: https://github.com/apache/arrow/pull/36486#discussion_r1253354385


##########
cpp/src/parquet/properties.h:
##########
@@ -817,11 +817,12 @@ class PARQUET_EXPORT ArrowReaderProperties {
     }
   }
 
-  /// \brief Set the maximum number of rows to read into a chunk or record batch.
+  /// \brief Set the maximum number of rows to read into a arrow chunk or record batch.

Review Comment:
   I've check the code, this is only for RecordBatch



-- 
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] mapleFU commented on a diff in pull request #36486: GH-34509: [C++][Parquet] Doc: fix comment for ArrowReaderProperties::batch_size

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on code in PR #36486:
URL: https://github.com/apache/arrow/pull/36486#discussion_r1253339399


##########
cpp/src/parquet/properties.h:
##########
@@ -817,11 +817,12 @@ class PARQUET_EXPORT ArrowReaderProperties {
     }
   }
 
-  /// \brief Set the maximum number of rows to read into a chunk or record batch.
+  /// \brief Set the maximum number of rows to read into a arrow chunk or record batch.

Review Comment:
   `ChunkedArray` I guess ╮( ̄▽ ̄"")╭



-- 
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] pitrou commented on a diff in pull request #36486: GH-34509: [C++][Parquet][Docs] Fix comment for ArrowReaderProperties::batch_size

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #36486:
URL: https://github.com/apache/arrow/pull/36486#discussion_r1254392514


##########
cpp/src/parquet/properties.h:
##########
@@ -817,11 +817,11 @@ class PARQUET_EXPORT ArrowReaderProperties {
     }
   }
 
-  /// \brief Set the maximum number of rows to read into a chunk or record batch.
+  /// \brief Set the maximum number of rows to read into a record batch.
   ///
   /// Will only be fewer rows when there are no more rows in the file.

Review Comment:
   ```suggestion
     /// Will only be fewer rows when there are no more rows in the file.
     /// Note that some APIs such as ReadTable may ignore this setting.
   ```



-- 
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] github-actions[bot] commented on pull request #36486: GH-34509: [C++][Parquet] Doc: fix comment for ArrowReaderProperties::batch_size

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36486:
URL: https://github.com/apache/arrow/pull/36486#issuecomment-1622040863

   :warning: GitHub issue #34509 **has been automatically assigned in GitHub** to PR creator.


-- 
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] wgtmac commented on a diff in pull request #36486: GH-34509: [C++][Parquet] Doc: fix comment for ArrowReaderProperties::batch_size

Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on code in PR #36486:
URL: https://github.com/apache/arrow/pull/36486#discussion_r1253370057


##########
cpp/src/parquet/properties.h:
##########
@@ -817,11 +817,12 @@ class PARQUET_EXPORT ArrowReaderProperties {
     }
   }
 
-  /// \brief Set the maximum number of rows to read into a chunk or record batch.
+  /// \brief Set the maximum number of rows to read into a record batch.
   ///
+  /// It only applies to reading into RecordBatch.

Review Comment:
   this can be removed as well since it duplicates the above comment.



-- 
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] pitrou commented on a diff in pull request #36486: GH-34509: [C++][Parquet][Docs] Fix comment for ArrowReaderProperties::batch_size

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #36486:
URL: https://github.com/apache/arrow/pull/36486#discussion_r1254393079


##########
cpp/src/parquet/properties.h:
##########
@@ -817,11 +817,11 @@ class PARQUET_EXPORT ArrowReaderProperties {
     }
   }
 
-  /// \brief Set the maximum number of rows to read into a chunk or record batch.
+  /// \brief Set the maximum number of rows to read into a record batch.
   ///
   /// Will only be fewer rows when there are no more rows in the file.
   void set_batch_size(int64_t batch_size) { batch_size_ = batch_size; }
-  /// Return the batch size.
+  /// Return the batch size, and it only applies to reading into RecordBatch.

Review Comment:
   ```suggestion
     /// Return the batch size in rows.
     ///
     /// Note that some APIs such as ReadTable may ignore this setting.
   ```



-- 
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] conbench-apache-arrow[bot] commented on pull request #36486: GH-34509: [C++][Parquet] Improve docstrings for ArrowReaderProperties::batch_size

Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #36486:
URL: https://github.com/apache/arrow/pull/36486#issuecomment-1632863011

   Conbench analyzed the 6 benchmark runs on commit `adbeabfd`.
   
   There was 1 benchmark result indicating a performance regression:
   
   - Commit Run on `ursa-thinkcentre-m75q` at [2023-07-09 17:45:10Z](http://conbench.ursa.dev/compare/runs/3fe6cdb0d0414138bf575e36e1816cee...bd032e2909ae41f59be9aecf27ef40d8/)
     - [source=cpp-micro, suite=arrow-decimal-benchmark](http://conbench.ursa.dev/compare/benchmarks/064aaca0b37978db8000a99a64ff9cf6...064aaf2f5e5f7d038000f16acf8725fc)
   
   The [full Conbench report](https://github.com/apache/arrow/runs/14987248612) has more details.


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