Giter Site home page Giter Site logo

Comments (7)

chrisknoll avatar chrisknoll commented on August 28, 2024

Hmm, I take it back, the cdm v5 ddl in the repo does use integer consistently but in our own environment we apply it as bigint. So, perhaps this issue should be to convert integer to bigint for mssql DDL.

from commondatamodel.

clairblacketer avatar clairblacketer commented on August 28, 2024

@chrisknoll is this still an issue?

from commondatamodel.

chrisknoll avatar chrisknoll commented on August 28, 2024

Yes and No. See here:
https://github.com/OHDSI/CommonDataModel/blob/master/Sql%20Server/OMOP%20CDM%20ddl%20-%20SQL%20Server.sql#L227

Originally, I thought i found cases where person_id was a bigint in the default DDL but I must have been looking at our internal CDM schema and not the raw DDL on the CDM repo.

The 'No' part is that the CDM schema DDL on the repo is consistent: all person_ids are declared as Integer.

The 'Yes' part is that the sources that we ETL commonly have values for person ID that exceed the limits of an integer, and therefore bigint might be more appropriate. That's the root of the issue I reported here. I'll update the title to reflect this.

@cgreich , could you chime in on this, is this the sort of thing that should be a WG change or is this something we can leave as int and let third parties make a one-off change to their CDMs if an integer is not large enough to store a person_id?

from commondatamodel.

vojtechhuser avatar vojtechhuser commented on August 28, 2024

what is the boundary for int - big int? Is the boundary the same for all db engines? Change to bigint in canonical specs would be a CDM change to discuss in the CDM WG (in my view)

from commondatamodel.

chrisknoll avatar chrisknoll commented on August 28, 2024

yes, bigint is same across databases: 64bit number, vs int which is 32bit.

from commondatamodel.

cgreich avatar cgreich commented on August 28, 2024

Not sure what to say. We have been not being specific about this and leave it to the ETLers. Why do you think it is necessary to standardized this? Is there a consequence of some folks have it as INT?

from commondatamodel.

chrisknoll avatar chrisknoll commented on August 28, 2024

Nope. If left to their own ETL process, it can be handled that way.

from commondatamodel.

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.