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 @@ -945,7 +945,7 @@ fragment DQUOTA_STRING
;

fragment SQUOTA_STRING
: '\'' ( '\\'. | '\'\'' |~('\'') )* '\''
: '\'' ( '\\'. | '\'\'' | ~('\'') )* '\''
;

fragment BQUOTA_STRING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,17 @@ public ListenableFuture<?> isBlocked() {
return inputOperator.isBlocked();
}

@Override
public void close() throws Exception {
for (ColumnTransformer columnTransformer : projectOutputTransformerList) {
columnTransformer.close();
}
if (filterOutputTransformer != null) {
filterOutputTransformer.close();
}
inputOperator.close();
}

@Override
public long calculateMaxPeekMemory() {
long maxPeekMemory = inputOperator.calculateMaxReturnSize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ public boolean isReturnTypeNumeric() {
protected abstract void evaluate();

protected abstract void checkType();

public void close() {
// do nothing
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,10 @@ protected void checkType() {
public ColumnTransformer[] getInputColumnTransformers() {
return inputColumnTransformers;
}

@Override
public void close() {
// finalize executor
executor.beforeDestroy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,4 @@ public static boolean isRealNumber(String str) {
}
return NumberUtils.isCreatable(str.substring(index));
}

public static void main(String[] args) {
System.out.println(isRealNumber("+-1"));
}
}