Giter Site home page Giter Site logo

presto-utils's Introduction

presto-utils

This dbt package contains macros that:

  • can be (re)used across dbt projects using Presto/Trini
  • define implementations of dispatched macros from other packages that can be used on Presto/Trini

Compatibility

This package provides "shims" for:

Usage

Wherever a custom presto macro exists, dbt_utils adapter dispatch will pass to presto_utils. This means you can just do {{ dbt_utils.dateadd(...) }} without having to reference presto_utils.

Installation Instructions

To make use of these Presto adaptations in your dbt project, you must do two things:

  1. Install both and presto-utils and any of the compatible packages listed above by them to your packages.yml

    packages:
      - package: fishtown-analytics/dbt_utils
        version: {SEE DBT HUB FOR NEWEST VERSION}
      # presto_utils is not yet on dbt package hub
      - git: "https://github.com/calogica/presto-utils.git"
        revision: main
    
  2. Tell the supported package to also look for the presto_utils macros by adding the relevant variables to your dbt_project.yml

    vars:
      dbt_utils_dispatch_list: ['presto_utils']
      dbt_date_dispatch_list: ['presto_utils']
      dbt_expectations_dispatch_list: ['presto_utils']

presto-utils's People

Contributors

clausherther avatar

Stargazers

Quân Nguyễn avatar

Watchers

James Cloos avatar  avatar

Forkers

cultureamp

presto-utils's Issues

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.