-- name: GetCollectorFromJobId :one
SELECT id, activeVersion FROM collectors where jobId = $1;