Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public LocalCostEstimate visitSpatialJoin(SpatialJoinNode node, Void context)
public LocalCostEstimate visitUnion(UnionNode node, Void context)
{
// this assumes that all union inputs will be gathered over the network
// that is not aways true
// that is not always true
// but this estimate is better that returning UNKNOWN, as it sets
// cumulative cost to unknown
double inputSizeInBytes = getStats(node).getOutputSizeInBytes(node.getOutputSymbols(), types);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ private Optional<SemiJoinOutputFilter> extractSemiJoinOutputFilter(Expression pr

private static boolean isSemiJoinOutputReference(Expression conjunct, Symbol semiJoinOutput)
{
SymbolReference semiJoinOuputSymbolReference = semiJoinOutput.toSymbolReference();
return conjunct.equals(semiJoinOuputSymbolReference) ||
(conjunct instanceof NotExpression && ((NotExpression) conjunct).getValue().equals(semiJoinOuputSymbolReference));
SymbolReference semiJoinOutputSymbolReference = semiJoinOutput.toSymbolReference();
return conjunct.equals(semiJoinOutputSymbolReference) ||
(conjunct instanceof NotExpression && ((NotExpression) conjunct).getValue().equals(semiJoinOutputSymbolReference));
}

private static class SemiJoinOutputFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ SettableFuture<InternalNode> getNodeSettableFuture()
public void attachTaskId(TaskId taskId)
{
if (!this.taskId.compareAndSet(null, taskId)) {
throw new IllegalStateException("cannot attach taskId " + taskId + "; alrady attached to " + this.taskId.get());
throw new IllegalStateException("cannot attach taskId " + taskId + "; already attached to " + this.taskId.get());
}
}

Expand Down