Skip to content

[bug] creating a job with a output dataset wouldn't store output dataset #1689

@OleksandrDvornik

Description

@OleksandrDvornik

When we hit endpoint for creating a job and in body we pass output dataset (existing or not) we don't store it, response from that call has empty "outputs" field.

JobResource.createOrUpdate() -> JobDao.upsertJobMeta here we store only inputs

we use outputs only here when we create a new version of a dataset

Example:

PUT http://localhost:5000/api/v1/namespaces/postgres%3A%2F%2Flocalhost%3A6432/jobs/dvdrental.public.actor_info
Content-Type: application/json

{
  "type": "BATCH",
  "inputs": [],
  "outputs": [{
    "namespace": "postgres://localhost:6432",
    "name": "dvdrental.public.actor_info"
  }]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions