Giter Club home page Giter Club logo

Comments (5)

zifeishan avatar zifeishan commented on August 22, 2024

Are you sure the example works? OCR example cannot pass on my side.

The issue is that there are TWO variables in ONE table.

Assigining ID will only give ONE id to each ROW, but there are two variables in this row.

How are we dealing with this? I guess one solution is to restrict that every table can only contain one variable, update the example and docs...

02:35:40 [] ERROR SQL execution failed (Reason: ERROR: duplicate key value violates unique constraint "label2_pkey"
  Detail: Key (id)=(620) already exists.):

   UPDATE label2 SET id = nextval('id_sequence')

02:35:40 [PostgresInferenceDataStoreComponent$PostgresInferenceDataStore(akka://deepdive)] ERROR org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "label2_pkey"
  Detail: Key (id)=(620) already exists.
02:35:40 [PostgresInferenceDataStoreComponent$PostgresInferenceDataStore(akka://deepdive)] INFO  [Error] Please check the SQL cmd!
02:35:40 [inferenceManager] ERROR ERROR: duplicate key value violates unique constraint "label2_pkey"
  Detail: Key (id)=(620) already exists.
org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "label2_pkey"
  Detail: Key (id)=(620) already exists.

from deepdive.

feiranwang avatar feiranwang commented on August 22, 2024

Two variables are not in the same table. We have label1, label2. The problem is id is declared as primary key. This can be solved by declaring id as bigint.

    CREATE TABLE label1(
    id    BIGSERIAL PRIMARY KEY, 
    wid   INT, val BOOLEAN);

    CREATE TABLE label2(
    id    BIGSERIAL PRIMARY KEY, 
    wid   INT, val BOOLEAN);

from deepdive.

zifeishan avatar zifeishan commented on August 22, 2024

Awesome! Would you fix it?

from deepdive.

feiranwang avatar feiranwang commented on August 22, 2024

Yes, I fixed it locally. I'll push it later on.

from deepdive.

feiranwang avatar feiranwang commented on August 22, 2024

Done in b0d123a

from deepdive.

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.