Giter Club home page Giter Club logo

dbt-trino-utils's People

Contributors

damian3031 avatar hovaesco avatar mdesmet avatar robbertdm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dbt-trino-utils's Issues

dbt metrics

Describe the feature

I just tried to use dbt metrics, but it fails with trino, I think because of the following:
There's a dateadd in the metric_date_spine macro in the that trino doesn't recognize (it's date_add for trino).
Would it be an option to use this package to reimplement the macros necessary to run dbt metrics?

Describe alternatives you've considered

Overwrite the macros myself

Who will benefit?

People who want to use dbt metrics with trino.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

[Feature Request] Patch regexp_instr for Trino, so that its compatible in dbt-expectations

Patch regexp_instr for Trino, so that its compatible in dbt-expectations

Reference, of why am here.
calogica/dbt-expectations#243

Is your feature request related to a problem? Please describe.
Lets support regex expectation for Trino on
https://github.com/calogica/dbt-expectations/blob/b21b13f020f5df2c90885d0715a2e713d1204700/macros/regex/regexp_instr.sql

Describe the solution you'd like
We can use this,
https://trino.io/docs/current/functions/regexp.html
regexp_position(string, pattern, start, occurrence) โ†’ integer

Lets group similar implementation like https://github.com/dbt-msft/tsql-utils/tree/main/macros/dbt_expectations ?

Fix deduplicate bug

There is small bug in macros/dbt_utils/sql/deduplicate.sql:

  1. Comparison operator is wrong, fix it.
  2. Some new test could be written, as current test implemented in dbt-utils is not adequate to our implementation of deduplicate macro, because rn column is leaking due to lack of natural join in trino (trinodb/trino#14455).
  3. Investigate if there is a way to bypass/workaround/implement in another way, that rn won't be leaking.

Fix dbt-project-evaluator

Fix dbt-project-evaluator, some models and seeds are overridden at integration-tests level, but should be at package level

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.