Code Monkey home page Code Monkey logo

Comments (5)

echai58 avatar echai58 commented on June 12, 2024

Looking at the checkpoint code, I see this line:

v["add"]["dataChange"] = Value::Bool(false);

Am I misunderstanding what checkpoint does? Why is it being set to False?

from delta-rs.

ion-elgreco avatar ion-elgreco commented on June 12, 2024

@echai58 change seems to be done 3 years ago ^^, but reading the protocol it mentions data_change=false if files were already present in a table, so I guess that's why in this context.

You could check what the behavior is of delta-spark and if you see the data_change being preserved as-is?

from delta-rs.

echai58 avatar echai58 commented on June 12, 2024

@echai58 change seems to be done 3 years ago ^^, but reading the protocol it mentions data_change=false if files were already present in a table, so I guess that's why in this context.

You could check what the behavior is of delta-spark and if you see the data_change being preserved as-is?

Yeah, in my eyes a checkpoint isn't really a transaction because it doesn't generate a commit file, so i feel it should preserve it. But yeah, I'll look into what the delta-spark behavior is, good call.

from delta-rs.

ion-elgreco avatar ion-elgreco commented on June 12, 2024

@rtyler @roeap do you know why it's set to False perhaps?

from delta-rs.

echai58 avatar echai58 commented on June 12, 2024

@ion-elgreco Seems like checkpointing with delta-spark also sets dataChange to False. 🤷‍♂️ I guess that's the desired behavior.

I brought this up because I have a use case where I'm interested in figuring out which partitions were edited in the past n days, so I know which partitions to selectively z-order, so I don't have to z-order the entire table. I was relying on the add_actions table with the dataChange and modificationTime columns to determine this, but because of checkpointing, this seems to not work - do you have any alternatives?

from delta-rs.

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.