Skip to content

Support incremental array writing from data frame object#251

Merged
eddelbuettel merged 7 commits intomasterfrom
de/dataframe_with_named_domain_args
May 25, 2021
Merged

Support incremental array writing from data frame object#251
eddelbuettel merged 7 commits intomasterfrom
de/dataframe_with_named_domain_args

Conversation

@eddelbuettel
Copy link
Copy Markdown
Contributor

@eddelbuettel eddelbuettel commented May 24, 2021

This PR supports writing larger-than-memory arrays incrementally. To do so, it permits to set dimension domain ranges as a new optional argument to fromDataFrame(). This allows e.g. years to be set to [1970, 2021], say, rather than to the range in submitted chunk. (String dimensions already have null so no issue there.) Additionally, we ensure that the to-be-appended data.frame is re-ordered such that dimensions precede attributes after which the existing writing code "just works".

A new unit tests has been added as well.

(The tests were all fine at GH but some timed out when Azure Pipes had the flu earlier today leading to the temporary red marks. They will pass on re-run, and we can wait if need be.)

Comment thread inst/tinytest/test_tiledbarray.R Outdated
Copy link
Copy Markdown
Member

@aaronwolen aaronwolen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! This is a nice feature.

@eddelbuettel
Copy link
Copy Markdown
Contributor Author

Yup. Allowing 'larger-than-memory' sized arrays to be written from 'compatible-with-memory-size' chunks is neat.

And I feel like a doofus that I didn't catch the error. I will do the usual and blame Azure for being down yesterday (but I should have caught GitHub Actions) -- so thanks again for catching that. Will wait for this round to run and then merge.

@eddelbuettel eddelbuettel merged commit 437cb0e into master May 25, 2021
@eddelbuettel eddelbuettel deleted the de/dataframe_with_named_domain_args branch May 25, 2021 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants