Comments (6)
@batpigandme commented on Jan 16, 2018, 11:16 PM UTC:
See #1092
from dbplyr.
@jnolis commented on Jan 16, 2018, 11:22 PM UTC:
Thanks for the link. I'm not sure I fully understand though, if dplyr doesn't support 64 bit integers, why does extracting an existing SQL Server table with bigints in it create tables with integer64 columns? It is just partially supported somehow?
Here is an example where it creates an integer64:
- In SQL Server:
CREATE TABLE Example2 (Number bigint)
INSERT INTO Example2 SELECT 3
- In R:
tbl(con,"Example2")
- Results in:
# Source: table<Example2> [?? x 1]
# Database: Microsoft SQL Server 12.00.1000[jadler@lenatianalytics/MecMember]
Number
<S3: integer64>
1 3
Sorry if this is coming across as pedantic! I'm just trying to understand since I have some tables with bigints and once I bring them into R joining is causing problems (since some are ints and some are int64s). Thanks!
from dbplyr.
@batpigandme commented on Jan 16, 2018, 11:36 PM UTC:
I'm not totally sure (someone more knowledgeable will know, cc @edgararuiz), but based on the code I've linked to below, it looks like integer64
is considered a "known class" when collected. But as.integer64()
isn't a function in base or dplyr (the function from bit64 is used in tests.
dplyr/tests/testthat/helper-combine.R
Line 180 in b3837f5
| | special_non_vector_classes <- c( |
from dbplyr.
@edgararuiz commented on Jan 17, 2018, 2:53 AM UTC:
Ok, I think the right answer is to get as.integer64()
to translate to sql_cast("BIGINT")
. I need to check on the other DB translations to see how they should handle it.
@batpigandme - Can we mark this as database
feature
please?
Thanks all!
from dbplyr.
@hadley commented on May 20, 2018, 2:35 PM UTC:
@edgararuiz do you want to have a go at this one too?
from dbplyr.
@edgararuiz commented on May 22, 2018, 11:00 PM UTC:
Yes, I'll take it
from dbplyr.
Related Issues (20)
- Release dbplyr 2.5.0
- rstudio autocomplete slows down from 2.3.4 -> 2.4.0
- Breaking changes in dbplyr 2.5.0 HOT 9
- `distinct()` in Databricks/SparkSQL causes "arrange()... __row_num_*" error
- `head()` modifies `SELECT *`
- Export `check_na_rm()`
- rows_upsert worked in 2.4.0, broke with 2.5.0 HOT 2
- `sql` in `in_catalog` breaks with `filter` HOT 1
- Regression in window_order variable argument parsing for 2.5.0
- Unable to use quantile() in mutate() in DuckDB HOT 4
- Possible inconsistency in translation of stringr::str_like() with respect to ignore_case argument HOT 2
- postition of head in pipeline no longer leading to different sql HOT 3
- rows_delete fails due to key constraints: Canβt Modify Database Table
- dbplyr `across()` behavior differs from dplyr in a grouped context HOT 1
- Adding translations for clock::date_count_between()
- `rand_expr` is undocumented
- overflow error when counting very large tables in sql server
- Unusual behaviour of dplyr::pull() HOT 2
- Make compute docs easier to understand
- Supporting persisted tables for Spark SQL backend
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbplyr.