Code Monkey home page Code Monkey logo

models's Introduction

analyst-collective/models

A collection of model definitions for common data sets in SQL

contributing

sql construction conventions
  • first layer should simply set fields and table / schema
  • second layer should be filter. if no records to be filtered out, simply implement as select *.
  • third layer should be transformations. this could include datatype conversions, mapping, and other simple transformations to make the data more standardized and consumable. all transformations must meet the strict definition of universal applicability.
  • see logical-model-flow.pdf for a visual representation of the structure.
  • all files should be DDL (should create permanent database objects, not just execute queries)

questions

  • need to create a destination schema for views created.
    • should be separate schema for each source system or all together in a single schema?
    • should scripts automatically drop / recreate schemas? much cleaner but high potential for fuckup by users not paying attention.
    • should the schema for the intermediate views (base, filtered, transformed) be separate from the schema for the final views? i think so...
  • how should unit / integration / regression testing work? the last two, especially, are a huge deal.
  • what's the best way to execute a bunch of sql statements in a row even with the sql source being in independent files?
  • how do these get documented in an SEO-friendly way? coming across one of these in github will scare off most medium-technical biz users...
  • we should consider making a cleanup script that drops all of the views created. it's annoying to clean up after them.
  • is there a way we can provide a deduplication layer? this is a big problem that yevgeniy runs into; we should think about it.

models's People

Contributors

jthandy avatar

Watchers

James Cloos avatar Henry Hund avatar

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.