Skip to content

Commit 65c9848

Browse files
Do not allow skipNull() on nullable producer
1 parent 4169b62 commit 65c9848

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adapter/avro/src/main/java/org/apache/arrow/adapter/avro/producers/AvroNullableProducer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ public void produce(Encoder encoder) throws IOException {
4848

4949
@Override
5050
public void skipNull() {
51-
delegate.skipNull();
52-
super.skipNull();
51+
// Should never be called on nullable producer
52+
// Calling produce() will skipNull() on the delegate
53+
throw new UnsupportedOperationException();
5354
}
5455

5556
@Override

0 commit comments

Comments
 (0)