Giter Club home page Giter Club logo

Comments (4)

ddkang avatar ddkang commented on August 26, 2024

I think all columns are referred to by their fully qualified names "table.column". If not, we should probably do that everywhere.

from aidb.

akash17mittal avatar akash17mittal commented on August 26, 2024

https://github.com/ddkang/aidb-new/blob/f8e1521958e07381dd182a3a67174489191dafea/aidb/config/config.py#L185

I think, maybe here they are not

from aidb.

ttt-77 avatar ttt-77 commented on August 26, 2024

Yes, all columns are referred to by their fully qualified names "table.column".
To make the output can be deterministically generated, we need to make sure any primary key column in the output table with a foreign key relationship must exist in the primary key columns of the input tables. For example, suppose table A, table B are input tables, table C is a output table, C has a composite primary key (key1, key2, key3). If key1, key2 are foreign keys, they must refer to column in table A or table B. If key1 refer to another table D, we should raise an exception. However, a foreign key can only refer to one column in parent table. For multi input table situation, we make an assumption. Column with same name in different tables represent same thing. Suppose table A, table B are input tables, they have same column Frame. Table A can join Table B on Table A.Frame = Table B.Frame. Then the output table C should contain column Frame, and it only need to refer to one of Table A.Frame and Table B.Frame.

from aidb.

akash17mittal avatar akash17mittal commented on August 26, 2024

Perfect, makes sense.

from aidb.

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.