Skip to content

Conversation

@JonathonO
Copy link

No description provided.

JonathonO added 7 commits May 16, 2025 16:28
- JVM fails to start when running tests due to `--add-opens` option not being recognised
- `NoClassDefFound` exceptions due to missing JUnit 4 dependency
Isolated our type mappings from Snowflake's (`SnowflakeColumnTypeMapper`). Should make future Snowflake upgrades a little easier to merge.

For now, have had to mark a couple of constructors in dependent classes as `public`, not just `@VisibleForTesting` to support this.
We introduced Java's `HexFormat` as a workaround, but, that's Java 17 compatible onwards and Snowflake's Kafka Connector has and still is Java 8 compatible so `HexFormat` not supported.

Wrote a replacement method, doubt it'll be as performant and still not clear if we need this workaround. Should be re-tested.
Should've been committed in previous commit.
@JonathonO JonathonO requested a review from wrehman-skap May 22, 2025 10:42
@JonathonO JonathonO self-assigned this May 22, 2025
switch (schemaName) {
case Decimal.LOGICAL_NAME:
if (kafkaType == org.apache.kafka.connect.data.Schema.Type.BYTES) {
return DECIMAL_SQL_TYPE;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JonathonO I can't see this map in your new class

@wrehman-skap wrehman-skap marked this pull request as ready for review May 22, 2025 15:38
@wrehman-skap wrehman-skap merged commit e29fa64 into snowflake-v3.2.0 May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants