forked from tidyverse/dplyr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kirill Müller
committed
Mar 18, 2016
1 parent
3a77c13
commit ae91470
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,10 @@ as.data.frame.tbl_sql <- function(x, row.names = NULL, optional = NULL, | |
|
||
#' @export | ||
print.tbl_sql <- function(x, ..., n = NULL, width = NULL) { | ||
cat("Source: query ", dim_desc(x), "\n", sep = "") | ||
cat("Source: query ") | ||
xm <- trunc_mat(x, n = n, width = width) | ||
cat(dim_desc(xm), "\n", sep = "") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
krlmlr
Owner
|
||
|
||
cat("Database: ", src_desc(x$src), "\n", sep = "") | ||
|
||
grps <- op_grps(x$ops) | ||
|
@@ -64,7 +67,7 @@ print.tbl_sql <- function(x, ..., n = NULL, width = NULL) { | |
|
||
cat("\n") | ||
|
||
print(trunc_mat(x, n = n, width = width)) | ||
print(xm) | ||
invisible(x) | ||
} | ||
|
||
|
Doesn't this mean it always prints the size of the retrieved table? i.e. we lose the fact that the complete number of rows is not known.