Coder Social home page Coder Social logo

Comments (5)

AlexanderMann avatar AlexanderMann commented on June 27, 2024

@pcorbel does target-redshift/target-postgres create TIMESTAMP WITHOUT TIME ZONE columns somewhere?

Currently, the thinking is that the only supported tables are those that the target created.

from target-redshift.

pcorbel avatar pcorbel commented on June 27, 2024

@AlexanderMann
does target-redshift/target-postgres create TIMESTAMP WITHOUT TIME ZONE columns somewhere? --> No

I agree that only supported tables are those that the datamill-co/target-redshift created.
However, as of today, we need the totality of the tables in the schema to be created by datamill-co/target-redshift.

We can't have:

  • schema_a/table_stitch_with_timestamp_without_time_zone
  • schema_a/table_manually_created_with_timestamp_without_time_zone
  • schema_a/table_singer_datamill

But only:

  • schema_a/table_stitch_with_timestamp_without_time_zone
  • schema_a/table_manually_created_with_timestamp_without_time_zone
  • schema_b/table_singer_datamill

from target-redshift.

AlexanderMann avatar AlexanderMann commented on June 27, 2024

@pcorbel do you know whether you're getting these errors on just running the target, or is it when a stream you're processing tries to persist to a table created by some other means?

ie, is it:

  1. stream FOO tries to persist to remote table foo a table created and maintained by target-redshift
    • another table, bar, exists in the remote schema which has been created by another process
  2. stream FOO tries to persist to remote table foo which exists in the remote schema which has been created by another process

I ask, because I think the guidance has been that targets should probably be run in their own schemas and if they happen to work alongside other processes, that's great, but not a given. For target-redshift specifically, we've turned down trying to support tables not created and maintained by target-redshift.

The reason for this is that the stores a tonne of metadata into the remote table's COMMENT and has to use that for most operations.

from target-redshift.

pcorbel avatar pcorbel commented on June 27, 2024

@AlexanderMann It is the 1 case you mentioned.
My usecase is that I would like to migrate some tables from Stitch to in-house extraction.
To be able to do it in a transparent and smooth way, I would like my end users to use the same table name, in the the same schema name. It is just the extraction that would be different.

from target-redshift.

AlexanderMann avatar AlexanderMann commented on June 27, 2024

Fascinating. So @pcorbel to be clear, you are not looking to mix and match maintenance of tables between target-redshift and something else, but rather are looking to simply use it inside a schema which has other things in it?

If yes, I think we should identify where the code is blowing up by pulling in other stuffs first, as I can easily see this becoming a game of whack-a-mole with types etc.

from target-redshift.

Related Issues (19)

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.