-
Notifications
You must be signed in to change notification settings - Fork 89
GH-836: Added support of ExtensionType for ComplexCopier #837
New issue
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
Changes from 3 commits
24ac59a
8835842
12a6d76
d4d8e1d
f8c6490
6dcd7ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
import org.apache.arrow.memory.BufferAllocator; | ||
import org.apache.arrow.memory.ReferenceManager; | ||
import org.apache.arrow.util.Preconditions; | ||
import org.apache.arrow.vector.complex.impl.ExtensionTypeWriterFactory; | ||
import org.apache.arrow.vector.complex.reader.FieldReader; | ||
import org.apache.arrow.vector.util.DataSizeRoundingUtil; | ||
import org.apache.arrow.vector.util.TransferPair; | ||
|
@@ -260,6 +261,18 @@ public void copyFromSafe(int fromIndex, int thisIndex, ValueVector from) { | |
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Override | ||
public void copyFrom( | ||
int fromIndex, int thisIndex, ValueVector from, ExtensionTypeWriterFactory writerFactory) { | ||
throw new UnsupportedOperationException(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should these be abstract methods instead? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, because this method is used only with complex type vectors and they have implementation; for non-complex, it's not supported, and this behavior is covered here |
||
} | ||
|
||
@Override | ||
public void copyFromSafe( | ||
int fromIndex, int thisIndex, ValueVector from, ExtensionTypeWriterFactory writerFactory) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
/** | ||
* Transfer the validity buffer from `validityBuffer` to the target vector's `validityBuffer`. | ||
* Start at `startIndex` and copy `length` number of elements. If the starting index is 8 byte | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can ever support extension without the factory right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, we need a factory to determine writer impl for extension type.