| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| validateOrThrow( | ||
| vector.getValueCount() >= 0, | ||
| "Vector valueCount %s is negative.", | ||
| vector.getValueCapacity()); |
There was a problem hiding this comment.
Can we use validateVectorCommon?
The comment in validateVectorCommon points back to #109. So I feel like figuring that out should be part of resolving the issue.
Sorry, something went wrong.
There was a problem hiding this comment.
How do you think validateVectorCommon should be modified to support StringView? My idea is
if (vector instanceof BaseVariableWidthViewVector) {
int typeBufferCount = TypeLayout.getTypeBufferCount(arrowType);
validateOrThrow(
fieldVector.getFieldBuffers().size() >= typeBufferCount,
"Expected at least %s buffers in vector of type %s, got %s.",
typeBufferCount,
vector.getField().getType().toString(),
fieldVector.getFieldBuffers().size());
}
Sorry, something went wrong.
There was a problem hiding this comment.
Roughly yes but I would prefer adding a TypeLayout.isVariableBuffer instead of hardcoding a type check
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What's Changed
Implement Vector Validators for StringView.
Closes #109.