We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test case is follow:
@Test public void testNullElementArray () { // given Schema arrayRecordSchema = Schema.createArray(Schema.createUnion(Schema.create(Schema.Type.STRING) , Schema.create(Schema.Type.NULL))); List<Object> records = new ArrayList<Object>(); records.add(null); records.add(null); records.add(null); // when List<Object> array = decodeRecord(arrayRecordSchema, arrayRecordSchema, specificDataAsDecoder(records, arrayRecordSchema)); // then Assert.assertEquals(3, array.size()); Assert.assertNull(array.get(0)); Assert.assertNull(array.get(1)); Assert.assertNull(array.get(2)); }
The text was updated successfully, but these errors were encountered:
Hi, thank you for pointing that out - we indeed had a small bug in handling null array elements. Fix is already on its way.
Sorry, something went wrong.
Hi,
Release 1.0.4 which fixes this bug is already available.
thanks
No branches or pull requests
Test case is follow:
The text was updated successfully, but these errors were encountered: