Giter Site home page Giter Site logo

Comments (2)

max-hoffman avatar max-hoffman commented on July 19, 2024 2

I can repro, this one is a little trickier but basically the same thing. Before we were bleeding information between transactions, failing to reset editor data created an insert editor with a split brain. Now we're bleeding information between analysis and execution. When we resolve foreign keys the session initializes a tableEditor for the FK table. Because the FK table is the same as the insert table, we lose track of the difference when we initialize the execution insert editor. Same error root cause, the editor that lands id increments is not the editor with the insert data.

I do not understand why the FK table editor needs to share the same namespace as the insert table and will look into this. But the solution is either 1) make the session namespace differentiate these two states, 2) make sure the insert editor tracks the analysis editor, 3) make some structural change where FKs do what they need to do in a different way. I guess it depends on whether we can take shortcuts with DELETEs and FK CASCADEs accumulating in the same editor, or if those have to be applied sequentially in different working sets.

from go-mysql-server.

mlucic avatar mlucic commented on July 19, 2024

CC @max-hoffman since you implemented the fix for the related issue

from go-mysql-server.

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.