Skip to content

feat: json worker aggregate - #88

Merged
JyVers merged 4 commits into
mainfrom
feat/json-worker-aggregate
Jun 11, 2026
Merged

JyVers merged 4 commits into
mainfrom
feat/json-worker-aggregate

Conversation

@JyVers

@JyVers JyVers commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

How to test?

  1. just clean && just dev
  2. Get an access token :
curl -X POST localhost:3000/auth/signup -H "Content-Type: application/json" -d '{"email": "test@umontpellier.fr", "password": "Test123!"}' -vvv
  1. Upload a JSON file:
curl -X POST localhost:3000/datasources -F "file=@./docs/example.json" -F 'metadata={"type":"json"}' -H "Authorization: Bearer <access-token>" -vvv
  1. Make the request:
curl  -X POST \
  'localhost:3000/jobs' \
  --header 'Authorization: Bearer <access-token>' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "age>25",
  "datasource_id": "c8f1d132-f153-4516-90a6-636d4d9a30f3",
  "pipeline": [
    {
      "op": "aggregate",
      "columns": ["rating", "year"],
      "functions": ["avg", "sum", "count"]
    }
  ]
}'

@JyVers
JyVers force-pushed the feat/json-worker-aggregate branch from c5d1e6f to 9726a06 Compare June 11, 2026 03:53
@JyVers
JyVers force-pushed the feat/json-worker-aggregate branch from 12a8cbe to e044fdc Compare June 11, 2026 04:07
@JyVers
JyVers merged commit 4c859b6 into main Jun 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants