Skip to content

Commit 4ee2c8d

Browse files
committed
MB to MiB per SPARK-25696
1 parent 68dbdd7 commit 4ee2c8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsTestUtils.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ trait SQLMetricsTestUtils extends SQLTestUtils {
208208
}
209209

210210
private def stringToBytes(str: String): (Float, String) = {
211-
val matcher = Pattern.compile("([0-9]+(\\.[0-9]+)?) (EB|PB|TB|GB|MB|KB|B)").matcher(str)
211+
val matcher =
212+
Pattern.compile("([0-9]+(\\.[0-9]+)?) (EiB|PiB|TiB|GiB|MiB|KiB|B)").matcher(str)
212213
if (matcher.matches()) {
213214
(matcher.group(1).toFloat, matcher.group(3))
214215
} else {

0 commit comments

Comments
 (0)