Skip to content

Commit

Permalink
Include the size information when printing a SCB (#11984)
Browse files Browse the repository at this point in the history
No issue linked.
This is just a small change to include the batch size in the output when
printing a spillable batch.

Signed-off-by: Firestarman <[email protected]>
  • Loading branch information
firestarman authored Jan 22, 2025
1 parent f6274b6 commit f9613ab
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2024, NVIDIA CORPORATION.
* Copyright (c) 2020-2025, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -145,7 +145,8 @@ class SpillableColumnarBatchImpl (
}

override def toString: String =
s"SCB $handle $rowCount ${sparkTypes.toList} $refCount"
s"SCB size:$sizeInBytes, handle:$handle, rows:$rowCount, types:${sparkTypes.toList}," +
s" refCount:$refCount"
}

class SpillableCompressedColumnarBatchImpl(
Expand Down Expand Up @@ -198,7 +199,7 @@ class SpillableCompressedColumnarBatchImpl(
}

override def toString: String =
s"SCCB $handle $rowCount $refCount"
s"SCCB size:$sizeInBytes, handle:$handle, rows:$rowCount, refCount:$refCount"

override def dataTypes: Array[DataType] = null
}
Expand Down

0 comments on commit f9613ab

Please sign in to comment.