Skip to content

Commit

Permalink
Merge pull request #172 from DyfanJones/cache_issue
Browse files Browse the repository at this point in the history
Cache issue
  • Loading branch information
DyfanJones committed Nov 15, 2021
2 parents 4d313fa + 71cab8a commit d8d17b3
Show file tree
Hide file tree
Showing 56 changed files with 818 additions and 793 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# noctua (development version)
## Bug Fix:
* Ensure `dbGetQuery`, `dbExecute`, `dbSendQuery`, `dbSendStatement` work on older versions of `R` (#170). Thanks to @tyner for identifying issue.
* Caching would fail when statement wasn't a character (#171). Thanks to @ramnathv for identifying issue.

# noctua 2.3.0
## Feature:
Expand Down
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ cache_query = function(res){
if(res@info$Status != "FAILED") {
cache_append = data.table(
"QueryId" = res@info[["QueryExecutionId"]],
"Query" = res@info[["Query"]],
# ensure query is character class when caching
"Query" = as.character(res@info[["Query"]]),
"State"= res@info[["Status"]],
"StatementType"= res@info[["StatementType"]],
"WorkGroup" = res@info[["WorkGroup"]],
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/aws_athena_query_caching.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/aws_athena_unload.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/aws_s3_backend.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/changing_backend_file_parser.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions docs/articles/convert_and_save_cost.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions docs/articles/getting_started.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/how_to_retry.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d8d17b3

Please sign in to comment.