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"
}]
}