Skip to content

Commit b83091a

Browse files
viiryasrowen
authored andcommitted
[MINOR] Minor update for document
Two minor doc errors in `BytesToBytesMap` and `UnsafeRow`. Author: Liang-Chi Hsieh <viirya@gmail.com> Closes #5906 from viirya/minor_doc and squashes the following commits: 27f9089 [Liang-Chi Hsieh] Minor update for doc.
1 parent d497358 commit b83091a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeRow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void pointTo(
145145

146146
private void assertIndexIsValid(int index) {
147147
assert index >= 0 : "index (" + index + ") should >= 0";
148-
assert index < numFields : "index (" + index + ") should <= " + numFields;
148+
assert index < numFields : "index (" + index + ") should < " + numFields;
149149
}
150150

151151
@Override

unsafe/src/main/java/org/apache/spark/unsafe/map/BytesToBytesMap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ public int getValueLength() {
351351
* As an example usage, here's the proper way to store a new key:
352352
* <p>
353353
* <pre>
354-
* Location loc = map.lookup(keyBaseOffset, keyBaseObject, keyLengthInBytes);
354+
* Location loc = map.lookup(keyBaseObject, keyBaseOffset, keyLengthInBytes);
355355
* if (!loc.isDefined()) {
356-
* loc.putNewKey(keyBaseOffset, keyBaseObject, keyLengthInBytes, ...)
356+
* loc.putNewKey(keyBaseObject, keyBaseOffset, keyLengthInBytes, ...)
357357
* }
358358
* </pre>
359359
* <p>

0 commit comments

Comments
 (0)