Giter Site home page Giter Site logo

Comments (6)

 avatar commented on June 11, 2024

@batpigandme commented on Jan 16, 2018, 11:16 PM UTC:

See #1092

from dbplyr.

 avatar commented on June 11, 2024

@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:

  1. In SQL Server:
CREATE TABLE Example2 (Number bigint)
INSERT INTO Example2 SELECT 3
  1. In R:
tbl(con,"Example2")
  1. 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.

 avatar commented on June 11, 2024

@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.

| | special_non_vector_classes <- c( |

from dbplyr.

 avatar commented on June 11, 2024

@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.

 avatar commented on June 11, 2024

@hadley commented on May 20, 2018, 2:35 PM UTC:

@edgararuiz do you want to have a go at this one too?

from dbplyr.

 avatar commented on June 11, 2024

@edgararuiz commented on May 22, 2018, 11:00 PM UTC:

Yes, I'll take it

from dbplyr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.