This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 3a516ae [MINOR][R] Fix a R style in try and finally at DataFrame.R
3a516ae is described below
commit 3a516ae68c773668edf966474e61a208a51a2f96
Author: Lu WANG <[email protected]>
AuthorDate: Tue Sep 1 10:07:34 2020 +0900
[MINOR][R] Fix a R style in try and finally at DataFrame.R
Fix the R style issue which is not catched by the R style checker. Got
error:
```
R/DataFrame.R:1244:17: style: Closing curly-braces should always be on
their own line, unless it's followed by an else.
}, finally = {
^
lintr checks failed.
```
Closes #29574 from lu-wang-dl/fix-r-style.
Lead-authored-by: Lu WANG <[email protected]>
Co-authored-by: Lu Wang <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit 701e5934140e477426cf2a68f2c5746be67418d6)
Signed-off-by: HyukjinKwon <[email protected]>
---
R/pkg/R/DataFrame.R | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/R/pkg/R/DataFrame.R b/R/pkg/R/DataFrame.R
index 3a60d1c..4195ec8f 100644
--- a/R/pkg/R/DataFrame.R
+++ b/R/pkg/R/DataFrame.R
@@ -1240,7 +1240,8 @@ setMethod("collect",
arrowTable <- arrow::read_arrow(readRaw(conn))
}
as.data.frame(arrowTable, stringsAsFactors =
stringsAsFactors)
- }, finally = {
+ },
+ finally = {
close(conn)
})
return(output)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]