Skip to content

Conversation

@suketkar
Copy link
Contributor

@suketkar suketkar commented Nov 13, 2025

Problem Statement

Caused by: java.lang.ClassCastException: class org.apache.avro.generic.GenericData$Array cannot be cast to class [J (org.apache.avro.generic.GenericData$Array is in unnamed module of loader 'app'; [J is in module java.base of loader 'bootstrap')

GenericDataArray treats the collection as list opposed to long[] array. Fixing the same.

Solution

Treat DELETED_ELEM_TS_FIELD_NAME and ACTIVE_ELEM_TS_FIELD_NAME as List/Collection instead of long array

How was this PR tested?

Unit tests

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.

1 participant