Git Product home page Git Product logo

Comments (6)

zsvoboda avatar zsvoboda commented on May 20, 2024 2

Hi,

I'm looking at the Iceberg tables support plan:

As iceberg doesn't support CTA, the implementation do the following:

create tmp table as parquet
drop the old table, if exist
create iceberg table based on tmp table definition, only metadata
insert into from tmp
drop tmp table
I think that the tmp table creation is going to kill performance (I have 10s of billions of rows).

How about this approach:

create the tmp table with the model's SELECT with "LIMIT 0" appended
create iceberg table based on tmp table definition, only metadata
insert into the iceberg table with the model's SQL (don't append the LIMIT this time)
drop the tmp table
This would save one copying of all rows (hours of processing in my case).

Regards,

ZD

from dbt-athena.

nicor88 avatar nicor88 commented on May 20, 2024

@zsvoboda I implemented what you suggested, I tested with small datasets, seems working fine.

from dbt-athena.

zsvoboda avatar zsvoboda commented on May 20, 2024

Thank you!!! I’ll test it as soon as possible. What branch should I use for testing it?

from dbt-athena.

nicor88 avatar nicor88 commented on May 20, 2024

@zsvoboda we released the changes to 1.3.1, try that out.

from dbt-athena.

zsvoboda avatar zsvoboda commented on May 20, 2024

Hi Nicola, I'm testing the 1.3.2, and it works great in the table materialization mode. My elt works much faster now. Thank you! However, it works the old way in the incremental materialization mode. Any chance you can do the same trick in the incremental mode?

from dbt-athena.

nicor88 avatar nicor88 commented on May 20, 2024

@zsvoboda Feel free to address another issue to handle that request. I believe that is possible:

  • we first use parquet with limit 0
  • do the schema evolution
  • use the merge from the original SQL

from dbt-athena.

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.