PR #102 added a call to avro_schema_namespace in order to include the Postgres schema name (which we transport via the Avro schema namespace) in the generated Kafka topic for a table.
Unfortunately, avro_schema_namespace was added somewhat recently to avro-c and is not present in avro-c releases before 1.8.0.
Since packages are hard to come by for Avro 1.8.0+, this PR restores compatibility with Avro 1.7 (dropping the schema from the topic name in that case, and generating a build warning). /cc @mcapitanio
PR #102 added a call to
avro_schema_namespace
in order to include the Postgres schema name (which we transport via the Avro schema namespace) in the generated Kafka topic for a table.Unfortunately,
avro_schema_namespace
was added somewhat recently to avro-c and is not present in avro-c releases before 1.8.0.Since packages are hard to come by for Avro 1.8.0+, this PR restores compatibility with Avro 1.7 (dropping the schema from the topic name in that case, and generating a build warning). /cc @mcapitanio
Tested with avro-c 1.8.0 (as downloaded by Dockerfile.build) and 1.7.7.