Martin PREJEAN
12/06/2025, 3:02 PMjava.lang.RuntimeException: Unsupported message type: TRACE
at io.airbyte.cdk.integrations.destination_async.AsyncStreamConsumer.deserializeAirbyteMessage(AsyncStreamConsumer.java:192) ~[airbyte-cdk-core-0.22.1.jar:?]
at io.airbyte.cdk.integrations.destination_async.AsyncStreamConsumer.accept(AsyncStreamConsumer.java:151) ~[airbyte-cdk-core-0.22.1.jar:?]
at io.airbyte.cdk.integrations.base.SerializedAirbyteMessageConsumer$1.accept(SerializedAirbyteMessageConsumer.java:70) ~[airbyte-cdk-core-0.22.1.jar:?]
at io.airbyte.cdk.integrations.base.IntegrationRunner.consumeWriteStream(IntegrationRunner.java:321) ~[airbyte-cdk-core-0.22.1.jar:?]
at io.airbyte.cdk.integrations.base.IntegrationRunner.consumeWriteStream(IntegrationRunner.java:301) ~[airbyte-cdk-core-0.22.1.jar:?]
at io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.java:190) ~[airbyte-cdk-core-0.22.1.jar:?]
at io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.java:125) ~[airbyte-cdk-core-0.22.1.jar:?]
at io.airbyte.integrations.destination.clickhouse.ClickhouseDestination.main(ClickhouseDestination.java:116) ~[io.airbyte.airbyte-integrations.connectors-destination-clickhouse.jar:?]
I checked with Claude and i think the problem comes from the CDK version in the Clickhouse connector destination (CDK 0.22.1) that does not allow the connector to process traces or logs, while Google Ads is using v7.
=> Why is there such a gap between the 2 ? how could it be resolved easily ? did anyone came accross this problem ?
I can try to contribute but i need more infos about the CDK and how to bump up versions to make it work. All infos are appreciated, thank you !kapa.ai
12/06/2025, 3:03 PMTRACE messages) and the ClickHouse destination you’re using (which is built on an older Java CDK that does not support the AirbyteTraceMessage type). TRACE messages are a newer part of the Airbyte Protocol that let connectors emit error and estimate metadata during a sync.[\[Trace message\]](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol#airbytetracemessage) An older destination that doesn’t understand this newer protocol will throw exactly what you’re seeing: RuntimeException: Unsupported message type: TRACE. ### Why this happens - The ClickHouse destination JAR in your stack is using airbyte-cdk-core-0.22.1 (Java CDK). - That CDK version’s async consumer (AsyncStreamConsumer) doesn’t handle TRACE messages and fails when it sees them. - The Google Ads source is on a newer protocol/CDK that does emit TRACE messages (e.g., for estimates or richer errors), so when you pipe its output into this older ClickHouse destination, the destination crashes as soon as it encounters the first TRACE. This is the same class of issue seen in other places where newer protocol features (like new state types) hit older destinations and cause runtime errors.[\[CDC + Python dests\]](https://github.com/airbytehq/airbyte/issues/55697) ### Easiest way to resolve 1. Use the new ClickHouse v2 destination instead of the legacy one. - v2 is a full rewrite on the modern Bulk CDK, actively maintained, and kept up‑to‑date with current protocol/CDK versions.[\[ClickHouse v2 docs\]](https://docs.airbyte.com/integrations/destinations/clickhouse) - The changelog shows continuous CDK upgrades (e.g. up to Bulk CDK 0.1.78), which is where new protocol handling (including improved state and trace handling) is landing.[\[ClickHouse changelog\]](https://docs.airbyte.com/integrations/destinations/clickhouse#changelog) 2. In OSS / self‑hosted Airbyte - Configure a custom destination using the airbyte/destination-clickhouse-v2 image (tag latest or a specific recent tag from Docker Hub), as described by maintainers when v2 was still in beta.[\[ClickHouse v2 discussion\]](https://github.com/airbytehq/airbyte/discussions/62035) - Then point your PyAirbyte pipeline to that destination definition instead of the legacy ClickHouse destination. This avoids having to touch protocol translation yourself—v2 is already aligned with the modern Airbyte Protocol and CDK. ### If you want to contribute / bump the old destination If you specifically want to fix the legacy ClickHouse destination instead of moving to v2: - You would need to: - Bump its Java CDK dependency (airbyte-cdk-core) to a version that supports AirbyteTraceMessage, and - Update the destination consumer logic (AsyncStreamConsumer / runner wiring) to handle TRACE gracefully (either by ignoring them or surfacing them as logs/metrics). - This is similar to what was flagged for other destinations when new state or protocol features were introduced and destinations had to be updated to handle them.[\[CDC + Python dests\]](https://github.com/airbytehq/airbyte/issues/55697) However, the documentation strongly suggests that the long‑term path is to migrate to the v2 ClickHouse destination, which has already gone GA and replaces the v1 connector.[\[ClickHouse v2 GA\]](https://github.com/airbytehq/airbyte/discussions/62035) ### Recommended path for your case For a minimal-effort, robust fix: 1. Switch your PyAirbyte setup to use destination-clickhouse v2 (Docker image airbyte/destination-clickhouse-v2, recent 2.x version). 2. Re‑run your Google Ads → ClickHouse sync; the destination should now accept TRACE messages because it’s built on the newer Bulk CDK stack. If you share exactly which ClickHouse destination image/tag you are using in PyAirbyte, that can be cross‑checked against the documented ClickHouse changelog to confirm whether it includes the newer CDK versions.Martin PREJEAN
12/06/2025, 3:24 PMdocker_image=True of PyAirbyte, which pulls airbyte/destination-clickhouse:2.1.16-rc.1
return ab.get_destination(
"destination-clickhouse",
version="latest",
docker_image=True,
use_host_network=True, # Allow Docker container to access host localhost
config={
"host": config.CLICKHOUSE_HOST,
"port": 8123, # HTTP port for JDBC (not 9000 native protocol)
"username": config.CLICKHOUSE_USER,
"password": config.CLICKHOUSE_PASSWORD,
"database": config.CLICKHOUSE_DATABASE,
"ssl": False,
}
)kapa.ai
12/06/2025, 3:24 PMkapa.ai
12/06/2025, 3:25 PMairbyte/destination-clickhouse (the new GA connector), not airbyte/destination-clickhouse-v2 anymore. Here’s how the naming breaks down in the docs: - The current, supported ClickHouse destination is documented simply as “ClickHouse” and is a complete v2 rewrite on the Bulk CDK.[\[ClickHouse dest\]](https://docs.airbyte.com/integrations/destinations/clickhouse) - Its changelog shows all the recent 2.x versions (e.g. 2.1.14, 2.1.13, …) under the image airbyte/destination-clickhouse.[\[ClickHouse changelog\]](https://docs.airbyte.com/integrations/destinations/clickhouse#changelog) - The legacy connector (non–Destination V2, JSON-only) is now archived as ClickHouse [ARCHIVED] and is a different image, documented separately.[\[ClickHouse archived\]](https://docs.airbyte.com/integrations/destinations/clickhouse-deprecated) The older airbyte/destination-clickhouse-v2 image was used during the early beta period and OSS quick‑start instructions, before GA. Maintainers later announced that the v2 implementation had moved to GA and “will replace the existing 1.0.0 connector as a breaking change,” and they now direct users to the migration guide and the main ClickHouse destination docs.[\[GA announcement\]](https://github.com/airbytehq/airbyte/discussions/62035;https://docs.airbyte.com/integrations/destinations/clickhouse-migrations) Given that: - Using docker_image=True with "destination-clickhouse" and a recent tag (like the 2.1.x you’re seeing) is the correct way to get the modern v2 ClickHouse destination. - You should not switch to airbyte/destination-clickhouse-v2 in 2025; that image name was for the beta phase and is no longer what the docs refer to as the supported connector. So your PyAirbyte call is conceptually right; just ensure the config fields match the current spec (hostname without protocol, correct port, JSON option if needed, etc.). The docs list the required fields as host, port, database, username, password, and Enable JSON.[\[Setup guide\]](https://docs.airbyte.com/integrations/destinations/clickhouse#setup-guide)Martin PREJEAN
12/06/2025, 3:26 PMkapa.ai
12/06/2025, 3:26 PMkapa.ai
12/06/2025, 3:26 PM