Logstash: Index complex structure from jdbc input

Why are you using the aggregate filter? Why not use a perform a query joining all tables so you get the right structure directly from the database?