-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add write metrics for kudo. #2630
base: branch-25.02
Are you sure you want to change the base?
Add write metrics for kudo. #2630
Conversation
Signed-off-by: liurenjie1024 <[email protected]>
6fe10ca
to
d8fc386
Compare
It introduces a breaking api change, resolved in NVIDIA/spark-rapids#11784 |
build |
1 similar comment
build |
try { | ||
header.writeTo(out); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); |
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 should not be remapping exceptions here. Someone trying to catch the IOException will fail to catch it.
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.
Fixed.
writer.copyDataFrom(buffer, offset, length); | ||
return padForHostAlignment(writer, length); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); |
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.
Same remap concern here.
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.
Fixed.
@@ -208,7 +218,7 @@ long writeToStream(Table table, OutputStream out, int rowOffset, int numRows) { | |||
* @param numRows number of rows to write | |||
* @return number of bytes written | |||
*/ | |||
public long writeToStream(HostColumnVector[] columns, OutputStream out, int rowOffset, int numRows) { | |||
public WriteMetrics writeToStreamWithMetrics(HostColumnVector[] columns, OutputStream out, int rowOffset, int numRows) { |
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 add this new method rather breaking old method's signature to avoid breaking api change.
build |
This pr add support exporting write metrics of kudo serializer.