Skip to content

Commit 560e95a

Browse files
gertjanalwendigo
authored andcommitted
Fix typo in PagesSpatialIndexSupplier
1 parent e9b4175 commit 560e95a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/trino-main/src/main/java/io/trino/operator/PagesSpatialIndexSupplier.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ private static STRtree buildRTree(LongArrayList addresses, List<ObjectArrayList<
109109
for (int position = 0; position < addresses.size(); position++) {
110110
long pageAddress = addresses.getLong(position);
111111
int blockIndex = decodeSliceIndex(pageAddress);
112-
Block chennelBlock = channels.get(geometryChannel).get(blockIndex);
113-
VariableWidthBlock block = (VariableWidthBlock) chennelBlock.getUnderlyingValueBlock();
112+
Block channelBlock = channels.get(geometryChannel).get(blockIndex);
113+
VariableWidthBlock block = (VariableWidthBlock) channelBlock.getUnderlyingValueBlock();
114114
int blockPosition = decodePosition(pageAddress);
115-
int valueBlockPosition = chennelBlock.getUnderlyingValuePosition(blockPosition);
115+
int valueBlockPosition = channelBlock.getUnderlyingValuePosition(blockPosition);
116116

117117
// TODO Consider pushing is-null and is-empty checks into a filter below the join
118118
if (block.isNull(valueBlockPosition)) {

0 commit comments

Comments
 (0)