-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-22775][SQL] move dictionary related APIs from ColumnVector to WritableColumnVector #19970
Conversation
Test build #84871 has finished for PR 19970 at commit
|
retest this please |
Test build #84881 has finished for PR 19970 at commit
|
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.
We can simplify reserveDictionaryIds()
at WritableColumnVector.java#L659 as well.
Otherwise, LGTM.
*/ | ||
public final ColumnarRow getStruct(int rowId) { | ||
return new ColumnarRow(this, rowId); | ||
} | ||
|
||
/** | ||
* Returns a utility object to get structs. | ||
* provided to keep API compatibility with InternalRow for code generation | ||
* A special version of {@link #getShort(int)}, which is only used as an adapter for Spark codegen |
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.
getStruct(int)
instead of getShort(int)
?
Test build #84891 has finished for PR 19970 at commit
|
retest this pease |
@@ -105,6 +107,57 @@ private void throwUnsupportedException(int requiredCapacity, Throwable cause) { | |||
@Override | |||
public boolean anyNullsSet() { return anyNullsSet; } | |||
|
|||
/** | |||
* Returns the dictionary Id for rowId. | |||
* This should only be called when the ColumnVector is dictionaryIds. |
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.
ColumnVector
-> WritableColumnVector
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.
when dictionaryIds has WritableColumnVector.
?
LGTM except a few comments for wording |
Test build #84903 has finished for PR 19970 at commit
|
thanks, merging to master! |
What changes were proposed in this pull request?
These dictionary related APIs are special to
WritableColumnVector
and should not be inColumnVector
, which will be public soon.How was this patch tested?
existing tests