-
Notifications
You must be signed in to change notification settings - Fork 185
Sql server count big #1501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sql server count big #1501
Changes from 11 commits
0313c68
3936207
829a9c6
7c4edde
3e2679b
65b1826
b517341
dc588f5
7cef8f1
acf63fd
d329206
cc271f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -497,6 +497,24 @@ | |
| FROM `df` | ||
| ORDER BY `y` | ||
|
|
||
| # count_big | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where did these snapshots come from? I don't see a corresponding test. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, not sure how that happened. Have now added test and updated snapshots |
||
|
|
||
| Code | ||
| count(mf) | ||
| Output | ||
| <SQL> | ||
| SELECT COUNT_BIG(*) AS `n` | ||
| FROM `df` | ||
|
|
||
| --- | ||
|
|
||
| Code | ||
| tally(mf) | ||
| Output | ||
| <SQL> | ||
| SELECT COUNT_BIG(*) AS `n` | ||
| FROM `df` | ||
|
|
||
| # add prefix to temporary table | ||
|
|
||
| Code | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -400,6 +400,12 @@ test_that("row_number() with and without group_by() and arrange(): unordered def | |
| expect_snapshot(mf %>% arrange(y) %>% mutate(rown = row_number())) | ||
| }) | ||
|
|
||
| test_that("count_big", { | ||
| mf <- lazy_frame(x = c(1:5), y = c(rep("A", 5)), con = simulate_mssql()) | ||
| expect_snapshot(count(mf)) | ||
| expect_snapshot(tally(mf)) | ||
|
||
| }) | ||
|
|
||
| # Live database ----------------------------------------------------------- | ||
|
|
||
| test_that("can copy_to() and compute() with temporary tables (#438)", { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please include a comment with a link to the docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, now added!