-
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
Conversation
update SQLite snap (tidyverse#1563)
update from main
| sql_variant( | ||
| mssql_scalar, | ||
| sql_translator(.parent = base_odbc_agg, | ||
| n = function() sql("COUNT_BIG(*)"), |
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!
Co-authored-by: Hadley Wickham <[email protected]>
| FROM `df` | ||
| ORDER BY `y` | ||
|
|
||
| # count_big |
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.
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 comment
The 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
tests/testthat/test-backend-mssql.R
Outdated
| 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)) |
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.
I think one snapshot test is adequate here
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.
Makes sense. Have removed the second one
Use COUNT_BIG instead of COUNT for sql server so as to avoid overflow error for very large tables #1498