Giter Club home page Giter Club logo

Comments (3)

findinpath avatar findinpath commented on May 30, 2024

dbt_project.yml

seeds:

  data_date_trunc:
    +column_types:
      updated_at: timestamp(3)
      day: date
      month: date

data/data_date_trunc.sql

updated_at,day,month
2018-01-05 12:00:00,2018-01-05,2018-01-01
NULL,NULL,NULL

output of dbt seed

create table "memory"."default"."data_date_trunc" ("id" INTEGER,"user_id" INTEGER,"order_date" DATE,"status" VARCHAR)
insert into "memory"."default"."data_date_trunc" ("updated_at", "day", "month") values
          (TIMESTAMP '2018-01-05 12:00:00.000',DATE '2018-01-05',DATE '2018-01-01'),(NULL,NULL,NULL)

Works as expected I would say.

Please provide more details on how to reproduce the issue.

from dbt-trino.

mdesmet avatar mdesmet commented on May 30, 2024

Good news indeed, i restarted the trino db, and now it succeeded. I must have been looking at an old insert entry.

from dbt-trino.

mdesmet avatar mdesmet commented on May 30, 2024

I'm able to reproduce the issue by adding a column type specification.

seeds:
  test_project: 
    cross_db:
      data_date_trunc2:
        +column_types:
          updated_at: timestamp
          day: date
          month: date

I've also added some test project to demonstrate the issue: test_project.zip

from dbt-trino.

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.