Skip to content

Conversation

@mildek
Copy link
Collaborator

@mildek mildek commented Dec 9, 2025

No description provided.

Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
@mildek mildek force-pushed the feat/add-kafka-avro-protocol branch from b76ceb9 to e3ea18f Compare December 9, 2025 12:44
…rotocol

Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
@mildek mildek force-pushed the feat/add-kafka-avro-protocol branch from 1238242 to 8ce67ec Compare December 9, 2025 12:47
Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
@mildek mildek force-pushed the feat/add-kafka-avro-protocol branch 2 times, most recently from 61090fb to e6af9f8 Compare December 11, 2025 09:48
Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
@mildek mildek force-pushed the feat/add-kafka-avro-protocol branch from e6af9f8 to aa8a87b Compare December 11, 2025 09:49
@mildek mildek marked this pull request as draft December 11, 2025 15:23
Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
@mildek mildek force-pushed the feat/add-kafka-avro-protocol branch 2 times, most recently from ee61ade to 2b8dfca Compare January 14, 2026 13:46
Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
@mildek mildek force-pushed the feat/add-kafka-avro-protocol branch from 2b8dfca to 1f4ab48 Compare January 14, 2026 13:50
@mildek mildek marked this pull request as ready for review January 14, 2026 14:45
The avro-cpp library added in this PR uses fmt, which requires the /utf-8
compiler flag on Windows MSVC to handle Unicode support properly.

Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
…ndows.

The avro-cpp library from conda-forge defines fmt::formatter<avro::Name>
with a non-const format() method, but fmt v12 requires it to be const.
This commit adds a const-correct version of the formatter that is used
on Windows (MSVC) to prevent compilation errors.

Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
The avro-cpp library is not yet compatible with fmt v12. The library
defines fmt::formatter<avro::Name> with a non-const format() method,
but fmt v12 requires it to be const.

Homebrew and other package managers use fmt 11.2.0 with avro-cpp,
so we pin fmt<12 in the Windows conda environment to avoid
compilation errors on Windows CI.

Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
Instead of pinning to an older fmt version (which creates version mismatch
between platforms), we implement a workaround that provides a const-correct
fmt::formatter<avro::Name> specialization on Windows.

conda-forge's avro-cpp has an outdated formatter without const, while
fmt v11+ requires const. We define the correct version first and suppress
the redefinition warning, ensuring compatibility with latest fmt across
all platforms.

Also regenerated NOTICE file to include avro-cpp license.

Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
conda-forge's avro-cpp defines fmt::formatter with non-const format() method,
but fmt v11+ requires const. Create a centralized AvroIncludes.h wrapper that:

1. Temporarily sets FMT_VERSION to 80000 (below 90000 threshold) to prevent
   avro from defining its broken formatters
2. Includes all avro headers
3. Restores FMT_VERSION and defines const-correct formatters for both
   avro::Name and avro::Type

This can be removed once conda-forge updates avro-cpp.

Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
@mildek mildek force-pushed the feat/add-kafka-avro-protocol branch from 9632b13 to e9d65cb Compare January 15, 2026 11:52
…ty on Windows

Signed-off-by: Krzysztof Milde <Krzysztof.Milde@Point72.com>
@mildek mildek force-pushed the feat/add-kafka-avro-protocol branch from 29a3554 to acd75a1 Compare January 15, 2026 12:52
@mildek mildek requested a review from timkpaine January 15, 2026 13:16
@timkpaine timkpaine added type: enhancement Issues and PRs related to improvements to existing features adapter: kafka Issues and PRs related to the Apache Kafka adapter labels Jan 15, 2026
@timkpaine timkpaine dismissed their stale review January 15, 2026 14:34

all good now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adapter: kafka Issues and PRs related to the Apache Kafka adapter type: enhancement Issues and PRs related to improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants