Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,63 @@ env:
DOCKER_VOLUME_PREFIX: ".docker/"

jobs:
ubuntu-minimum-cpp-version:
name: Check minimum supported Arrow C++ Version (${{ matrix.cpp_version }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- cpp_version: "13.0.0"
steps:
- name: Checkout Arrow
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
path: src
submodules: recursive

- name: Install Arrow C++ (${{ matrix.cpp_version }})
run: |
sudo apt update
sudo apt install -y -V ca-certificates lsb-release wget
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt update
# We have to list all packages to avoid version conflicts.
sudo apt install -y -V libarrow-dev=${{ matrix.cpp_version }}-1 \
libarrow-acero-dev=${{ matrix.cpp_version }}-1 \
libparquet-dev=${{ matrix.cpp_version }}-1 \
libarrow-dataset-dev=${{ matrix.cpp_version }}-1

- name: Install checkbashisms
run: |
sudo apt-get install devscripts

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
install-r: false

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
working-directory: src/r

- uses: r-lib/actions/check-r-package@v2
with:
working-directory: src/r
env:
LIBARROW_BINARY: "false"
LIBARROW_BUILD: "false"
ARROW_R_VERBOSE_TEST: "true"
ARROW_R_ALLOW_CPP_VERSION_MISMATCH: "true"

- name: Show install output
if: always()
run: find src/r/check -name '00install.out*' -exec cat '{}' \; || true
shell: bash


ubuntu:
name: AMD64 Ubuntu ${{ matrix.ubuntu }} R ${{ matrix.r }} Force-Tests ${{ matrix.force-tests }}
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/arrow/ipc/writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ class ARROW_EXPORT RecordBatchWriter {

/// \brief Write Table with a particular chunksize
/// \param[in] table table to write
/// \param[in] max_chunksize maximum length of table chunks. To indicate
/// that no maximum should be enforced, pass -1.
/// \param[in] max_chunksize maximum number of rows for table chunks. To
/// indicate that no maximum should be enforced, pass -1.
/// \return Status
virtual Status WriteTable(const Table& table, int64_t max_chunksize);

Expand Down
4 changes: 2 additions & 2 deletions cpp/src/arrow/table.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ class ARROW_EXPORT TableBatchReader : public RecordBatchReader {

Status ReadNext(std::shared_ptr<RecordBatch>* out) override;

/// \brief Set the desired maximum chunk size of record batches
/// \brief Set the desired maximum number of rows for record batches
///
/// The actual chunk size of each record batch may be smaller, depending
/// The actual number of rows in each record batch may be smaller, depending
/// on actual chunking characteristics of each table column.
void set_chunksize(int64_t chunksize);

Expand Down
18 changes: 18 additions & 0 deletions dev/release/post-11-bump-versions-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,15 @@ def test_version_post_tag
]
if release_type == :major
expected_changes += [
{
path: "docs/source/index.rst",
hunks: [
[
"- Go <https://pkg.go.dev/github.com/apache/arrow/go/v#{@snapshot_major_version}>",
"+ Go <https://pkg.go.dev/github.com/apache/arrow/go/v#{@next_major_version}>",
],
],
},
{
path: "r/pkgdown/assets/versions.json",
hunks: [
Expand All @@ -212,6 +221,15 @@ def test_version_post_tag
],
],
},
{
path: "r/_pkgdown.yml",
hunks: [
[
"- [Go](https://pkg.go.dev/github.com/apache/arrow/go/v#{@snapshot_major_version}) <br>",
"+ [Go](https://pkg.go.dev/github.com/apache/arrow/go/v#{@next_major_version}) <br>",
],
],
},
]
else
expected_changes += [
Expand Down
17 changes: 17 additions & 0 deletions dev/release/utils-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ update_versions() {
DESCRIPTION
rm -f DESCRIPTION.bak
git add DESCRIPTION

# Replace dev version with release version
sed -i.bak -E -e \
"/^<!--/,/^# arrow /s/^# arrow .+/# arrow ${base_version}/" \
Expand All @@ -139,6 +140,13 @@ update_versions() {
fi
rm -f NEWS.md.bak
git add NEWS.md

# godoc link must reference current version, will reference v0.0.0 (2018) otherwise
sed -i.bak -E -e \
"s|(github\\.com/apache/arrow/go)/v[0-9]+|\1/v${major_version}|g" \
_pkgdown.yml
rm -f _pkgdown.yml.bak
git add _pkgdown.yml
popd

pushd "${ARROW_DIR}/ruby"
Expand All @@ -164,6 +172,15 @@ update_versions() {
git add .
popd

pushd "${ARROW_DIR}/docs/source"
# godoc link must reference current version, will reference v0.0.0 (2018) otherwise
sed -i.bak -E -e \
"s|(github\\.com/apache/arrow/go)/v[0-9]+|\1/v${major_version}|g" \
index.rst
rm -f index.rst.bak
git add index.rst
popd

pushd "${ARROW_DIR}"
${PYTHON:-python3} "dev/release/utils-update-docs-versions.py" \
. \
Expand Down
2 changes: 1 addition & 1 deletion dev/tasks/r/github.linux.offline.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
shell: Rscript {0}
- name: Install
env:
TEST_OFFLINE_BUILD: true
ARROW_OFFLINE_BUILD: true
LIBARROW_MINIMAL: false
{{ macros.github_set_sccache_envvars()|indent(8)}}
run: |
Expand Down
2 changes: 1 addition & 1 deletion dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ tasks:
r_org: library
r_image: r-base
r_tag: latest
flags: '-e TEST_OFFLINE_BUILD=true'
flags: '-e ARROW_OFFLINE_BUILD=true'

test-r-dev-duckdb:
ci: github
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Implementations
C/GLib <c_glib/index>
C++ <cpp/index>
C# <https://github.com/apache/arrow/blob/main/csharp/README.md>
Go <https://pkg.go.dev/github.com/apache/arrow/go>
Go <https://pkg.go.dev/github.com/apache/arrow/go/v16>
Java <java/index>
JavaScript <js/index>
Julia <https://arrow.apache.org/julia/>
Expand Down
4 changes: 2 additions & 2 deletions python/pyarrow/_flight.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1134,8 +1134,8 @@ cdef class MetadataRecordBatchWriter(_CRecordBatchWriter):
----------
table : Table
max_chunksize : int, default None
Maximum size for RecordBatch chunks. Individual chunks may be
smaller depending on the chunk layout of individual columns.
Maximum number of rows for RecordBatch chunks. Individual chunks may
be smaller depending on the chunk layout of individual columns.
"""
cdef:
# max_chunksize must be > 0 to have any impact
Expand Down
4 changes: 2 additions & 2 deletions python/pyarrow/ipc.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ cdef class _CRecordBatchWriter(_Weakrefable):
----------
table : Table
max_chunksize : int, default None
Maximum size for RecordBatch chunks. Individual chunks may be
smaller depending on the chunk layout of individual columns.
Maximum number of rows for RecordBatch chunks. Individual chunks may
be smaller depending on the chunk layout of individual columns.
"""
cdef:
# max_chunksize must be > 0 to have any impact
Expand Down
12 changes: 6 additions & 6 deletions python/pyarrow/table.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -4033,8 +4033,8 @@ cdef class Table(_Tabular):
Parameters
----------
max_chunksize : int, default None
Maximum size for ChunkedArray chunks. Individual chunks may be
smaller depending on the chunk layout of individual columns.
Maximum number of rows for ChunkedArray chunks. Individual chunks
may be smaller depending on the chunk layout of individual columns.

Returns
-------
Expand Down Expand Up @@ -4128,8 +4128,8 @@ cdef class Table(_Tabular):
Parameters
----------
max_chunksize : int, default None
Maximum size for RecordBatch chunks. Individual chunks may be
smaller depending on the chunk layout of individual columns.
Maximum number of rows for each RecordBatch chunk. Individual chunks
may be smaller depending on the chunk layout of individual columns.

Returns
-------
Expand Down Expand Up @@ -4196,8 +4196,8 @@ cdef class Table(_Tabular):
Parameters
----------
max_chunksize : int, default None
Maximum size for RecordBatch chunks. Individual chunks may be
smaller depending on the chunk layout of individual columns.
Maximum number of rows for each RecordBatch chunk. Individual chunks
may be smaller depending on the chunk layout of individual columns.

Returns
-------
Expand Down
42 changes: 41 additions & 1 deletion r/NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,46 @@

# arrow 15.0.1

## New features

* Bindings for `base::prod` have been added so you can now use it in your dplyr
pipelines (i.e., `tbl |> summarize(prod(col))`) without having to pull the
data into R (@m-muecke, #38601).
* Calling `dimnames` or `colnames` on `Dataset` objects now returns a useful
result rather than just `NULL` (#38377).
* The `code()` method on Schema objects now takes an optional `namespace`
argument which, when `TRUE`, prefixes names with `arrow::` which makes
the output more portable (@orgadish, #38144).

## Minor improvements and fixes

* Don't download cmake when ARROW_OFFLINE_BUILD=true and update `SystemRequirements` (#39602).
* Fallback to source build gracefully if binary download fails (#39587).
* An error is now thrown instead of warning and pulling the data into R when any
of `sub`, `gsub`, `stringr::str_replace`, `stringr::str_replace_all` are
passed a length > 1 vector of values in `pattern` (@abfleishman, #39219).
* Missing documentation was added to `?open_dataset` documenting how to use the
ND-JSON support added in arrow 13.0.0 (@Divyansh200102, #38258).
* To make debugging problems easier when using arrow with AWS S3
(e.g., `s3_bucket`, `S3FileSystem`), the debug log level for S3 can be set
with the `AWS_S3_LOG_LEVEL` environment variable.
See `?S3FileSystem` for more information. (#38267)
* Using arrow with duckdb (i.e., `to_duckdb()`) no longer results in warnings
when quitting your R session. (#38495)
* A large number of minor spelling mistakes were fixed (@jsoref, #38929, #38257)
* The developer documentation has been updated to match changes made in recent releases (#38220)

# arrow 14.0.2.1

## Minor improvements and fixes

* Check for internet access when building from source and fallback to a
minimally scoped Arrow C++ build (#39699).
* Build from source by default on macOS, use `LIBARROW_BINARY=true` for old behavior (#39861).
* Support building against older versions of Arrow C++. This is currently opt-in
(`ARROW_R_ALLOW_CPP_VERSION_MISMATCH=true`) and requires atleast Arrow C++ 13.0.0 (#39739).
* Make it possible to use Arrow C++ from Rtools on windows (in future Rtools versions). (#39986).

# arrow 14.0.2

## Minor improvements and fixes
Expand Down Expand Up @@ -327,7 +367,7 @@ Arrow query engine. See `?acero`.
A few new features and bugfixes were implemented for joins:

* Extension arrays are now supported in joins, allowing, for example, joining
datasets that contain [geoarrow](https://paleolimbot.github.io/geoarrow/) data.
datasets that contain [geoarrow](https://github.com/geoarrow/geoarrow) data.
* The `keep` argument is now supported, allowing separate columns for the left
and right hand side join keys in join output. Full joins now coalesce the
join keys (when `keep = FALSE`), avoiding the issue where the join keys would
Expand Down
1 change: 1 addition & 0 deletions r/PACKAGING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ For a high-level overview of the release process see the
## Before the release candidate is cut

- [ ] [Create a GitHub issue](https://github.com/apache/arrow/issues/new/) entitled `[R] CRAN packaging checklist for version X.X.X` and copy this checklist to the issue.
- [ ] Review deprecated functions to advance their deprecation status, including removing preprocessor directives that no longer apply (search for `ARROW_VERSION_MAJOR` in r/src).
- [ ] Evaluate the status of any failing [nightly tests and nightly packaging builds](http://crossbow.voltrondata.com). These checks replicate most of the checks that CRAN runs, so we need them all to be passing or to understand that the failures may (though won't necessarily) result in a rejection from CRAN.
- [ ] Check [current CRAN check results](https://cran.rstudio.org/web/checks/check_results_arrow.html)
- [ ] Ensure the contents of the README are accurate and up to date.
Expand Down
4 changes: 2 additions & 2 deletions r/R/dplyr-funcs-doc.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#'
#' The `arrow` package contains methods for 37 `dplyr` table functions, many of
#' which are "verbs" that do transformations to one or more tables.
#' The package also has mappings of 211 R functions to the corresponding
#' The package also has mappings of 212 R functions to the corresponding
#' functions in the Arrow compute library. These allow you to write code inside
#' of `dplyr` methods that call R functions, including many in packages like
#' `stringr` and `lubridate`, and they will get translated to Arrow and run
Expand Down Expand Up @@ -83,7 +83,7 @@
#' Functions can be called either as `pkg::fun()` or just `fun()`, i.e. both
#' `str_sub()` and `stringr::str_sub()` work.
#'
#' In addition to these functions, you can call any of Arrow's 254 compute
#' In addition to these functions, you can call any of Arrow's 262 compute
#' functions directly. Arrow has many functions that don't map to an existing R
#' function. In other cases where there is an R function mapping, you can still
#' call the Arrow function directly if you don't want the adaptations that the R
Expand Down
2 changes: 1 addition & 1 deletion r/R/duckdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ to_duckdb <- function(.data,
tbl <- dplyr::tbl(con, table_name)
groups <- dplyr::groups(.data)
if (length(groups)) {
tbl <- dplyr::group_by(tbl, groups)
tbl <- dplyr::group_by(tbl, !!!groups)
}

if (auto_disconnect) {
Expand Down
3 changes: 2 additions & 1 deletion r/R/flight.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ flight_disconnect <- function(client) {
#' @param overwrite logical: if `path` exists on `client` already, should we
#' replace it with the contents of `data`? Default is `TRUE`; if `FALSE` and
#' `path` exists, the function will error.
#' @param max_chunksize integer: Maximum size for RecordBatch chunks when a `data.frame` is sent.
#' @param max_chunksize integer: Maximum number of rows for RecordBatch chunks
#' when a `data.frame` is sent.
#' Individual chunks may be smaller depending on the chunk layout of individual columns.
#' @return `client`, invisibly.
#' @export
Expand Down
4 changes: 0 additions & 4 deletions r/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# arrow <img src="https://arrow.apache.org/img/arrow-logo_hex_black-txt_white-bg.png" align="right" alt="" width="120" />

[![cran](https://www.r-pkg.org/badges/version-last-release/arrow)](https://cran.r-project.org/package=arrow)
[![CI](https://github.com/apache/arrow/workflows/R/badge.svg?event=push)](https://github.com/apache/arrow/actions?query=workflow%3AR+branch%3Amain+event%3Apush)
[![conda-forge](https://img.shields.io/conda/vn/conda-forge/r-arrow.svg)](https://anaconda.org/conda-forge/r-arrow)

[Apache Arrow](https://arrow.apache.org/) is a cross-language
development platform for in-memory and larger-than-memory data. It specifies a standardized
language-independent columnar memory format for flat and hierarchical
Expand Down
2 changes: 1 addition & 1 deletion r/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ home:
[C GLib](https://arrow.apache.org/docs/c_glib) <br>
[C++](https://arrow.apache.org/docs/cpp) <br>
[C#](https://github.com/apache/arrow/blob/main/csharp/README.md) <br>
[Go](https://pkg.go.dev/github.com/apache/arrow/go) <br>
[Go](https://pkg.go.dev/github.com/apache/arrow/go/v16) <br>
[Java](https://arrow.apache.org/docs/java) <br>
[JavaScript](https://arrow.apache.org/docs/js) <br>
[Julia](https://github.com/apache/arrow-julia/blob/main/README.md) <br>
Expand Down
2 changes: 1 addition & 1 deletion r/configure
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ FORCE_BUNDLED_BUILD=`echo $FORCE_BUNDLED_BUILD | tr '[:upper:]' '[:lower:]'`
ARROW_USE_PKG_CONFIG=`echo $ARROW_USE_PKG_CONFIG | tr '[:upper:]' '[:lower:]'`
# Just used in testing: whether or not it is ok to download dependencies (in the
# bundled build)
TEST_OFFLINE_BUILD=`echo $TEST_OFFLINE_BUILD | tr '[:upper:]' '[:lower:]'`
ARROW_OFFLINE_BUILD=`echo $ARROW_OFFLINE_BUILD | tr '[:upper:]' '[:lower:]'`

VERSION=`grep '^Version' DESCRIPTION | sed s/Version:\ //`
UNAME=`uname -s`
Expand Down
Loading