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

[GitHub] [arrow-nanoarrow] krlmlr opened a new pull request, #212: chore: Remove duplicate branch

krlmlr opened a new pull request, #212:
URL: https://github.com/apache/arrow-nanoarrow/pull/212

   Looks like a copy-pastie.


-- 
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-nanoarrow] paleolimbot commented on a diff in pull request #212: chore: Remove duplicate branch

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on code in PR #212:
URL: https://github.com/apache/arrow-nanoarrow/pull/212#discussion_r1221975382


##########
r/R/convert-array-stream.R:
##########
@@ -71,8 +71,6 @@ convert_array_stream <- function(array_stream, to = NULL, size = NULL, n = Inf)
   }
 
   if (n_batches == 0L && is.data.frame(to)) {
-    to[integer(0), , drop = FALSE]
-  } else if (n_batches == 0L && is.data.frame(to)) {

Review Comment:
   I wonder if what I meant here was `if (n_batches == 0L && !is.data.frame(to))`? I'm pretty sure the first of these two shouldn't return `NULL`:
   
   ``` r
   library(nanoarrow)
   stream <- basic_array_stream(batches = list(), schema = na_int32())
   convert_array_stream(stream)
   #> NULL
   
   stream <- basic_array_stream(batches = list(), schema = na_struct(list(x = na_int32())))
   convert_array_stream(stream)
   #> [1] x
   #> <0 rows> (or 0-length row.names)
   ```
   
   <sup>Created on 2023-06-07 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup>



-- 
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-nanoarrow] codecov-commenter commented on pull request #212: chore: Remove duplicate branch

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #212:
URL: https://github.com/apache/arrow-nanoarrow/pull/212#issuecomment-1581480425

   ## [Codecov](https://app.codecov.io/gh/apache/arrow-nanoarrow/pull/212?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   > Merging [#212](https://app.codecov.io/gh/apache/arrow-nanoarrow/pull/212?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (b16130e) into [main](https://app.codecov.io/gh/apache/arrow-nanoarrow/commit/47a4ef4113d6539db14713f8696b01012e0022df?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (47a4ef4) will **increase** coverage by `0.01%`.
   > The diff coverage is `100.00%`.
   
   ```diff
   @@            Coverage Diff             @@
   ##             main     #212      +/-   ##
   ==========================================
   + Coverage   87.87%   87.89%   +0.01%     
   ==========================================
     Files          60       60              
     Lines        9249     9249              
   ==========================================
   + Hits         8128     8129       +1     
   + Misses       1121     1120       -1     
   ```
   
   
   | [Impacted Files](https://app.codecov.io/gh/apache/arrow-nanoarrow/pull/212?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [r/R/convert-array-stream.R](https://app.codecov.io/gh/apache/arrow-nanoarrow/pull/212?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ci9SL2NvbnZlcnQtYXJyYXktc3RyZWFtLlI=) | `96.77% <100.00%> (+3.22%)` | :arrow_up: |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   


-- 
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-nanoarrow] paleolimbot merged pull request #212: fix(r): Fix `convert_array_stream()` for non-record batch stream with zero batches

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


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