-
Notifications
You must be signed in to change notification settings - Fork 1k
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] minor refactor SparkWriter #3067
Conversation
Hi @YannByron , Please roughly explain why refactoring is necessary. |
Currently, all the spark write operations use |
|
||
def processPartition(rowIterator: Iterator[Row]): Iterator[Row] = { | ||
val rowType = table.rowType() | ||
val rowKeyExtractor = table.asInstanceOf[AbstractFileStoreTable].createRowKeyExtractor() |
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.
If you want this extractor, you could introduce a createRowKeyExtractor
to FileStoreTable
.
Subsequent matters related to permission security may require us to wrap a FileStoreTable
class, so it is best to rely only on the interface rather than the implementation.
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 wanted to do that at first...OK.
+1 |
Purpose
Linked issue: close #xxx
Tests
API and Format
Documentation