The MQTT source connector only creates multiple tasks, if number of KCQL statements > 1. While a use case is that we have one statement that subscribes to a shared topic and along with connect.mqtt.share.replicate set to true, it can be replicated on multiple tasks and run in parallel for load balancing.
Right now this config would result in only on task running with a single subscription, instead of shared subscription replicated in two tasks:
"connect.mqtt.kcql": "INSERT INTO telemetry_vehicles_gps SELECT * FROM $share/connect/telemetry/vehicles/gps",
"connect.mqtt.share.replicate": true,
"tasks.max": 2