I’m currently building java destination connector for teradata. Implementing destination with AbstractJdbcDestination as teradata supports JDBC connections. I am able to run spec, check and write directly from docker. When I ran write command with file message.jsonl file, content was not loading to teradata table. The following command I am using to load data to teradata.
cat messages.jsonl | docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/sample_files:/sample_files airbyte/destination-teradata:dev write --config /secrets/config.json --catalog /sample_files/configured_catalog.json
Please find the messages.jsonl and configured_catalog.json files.
airbyte/airbyte-integrations/connectors/destination-teradata/sample_files/configured_catalog.json
airbyte/airbyte-integrations/connectors/destination-teradata/messages.jsonl
Hey @SatishChGit, thanks for your patience while I look into this! Were you following a specific tutorial/piece of documentation while working on this?
1 Like
Are you handling exceptions with the AirbyteTraceMessage class?
https://docs.airbyte.com/connector-development/tutorials/building-a-java-destination/#handling-exceptions
This seems like it should raise an exception, since the connector is not running as expected.
Yes I handled exceptions as per documentation. But I don’t see any exceptions. attached output logs for write command execution.
IssueLog.txt (6.6 KB)
Here the implemented class of teradata for your reference.
airbyte/TeradataSqlOperations.java at teradata_destination · SatishChGit/airbyte (github.com)
What I observed from logs is Implementation of AirbyteMessageConsumer - accept method is not calling. Only start and close methods are executing.