-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in 3.7.1: InternalUtils.symbol: tree is null #3850
Comments
The offending call seems to be added in 1a0712f#diff-8382353728edc77ba9bf0342019ad97ce6be2f99a0b00492f97b423acf7f18e9R207
|
The only private static Iterable<@PolyNull SqlParserPos> toPos(
Iterable<? extends @PolyNull SqlNode> nodes) {
return Util.transform(nodes,
node -> node == null ? castNonNull(null) : node.getParserPosition());
} and public static <F, T> Iterable<T> transform(Iterable<? extends F> iterable,
java.util.function.Function<? super F, ? extends T> function) {
// FluentIterable provides toString
return new FluentIterable<T>() {
@Override public Iterator<T> iterator() {
return Util.transform(iterable.iterator(), function);
}
};
} |
Thanks for the useful bug report. (And, my apologies for the bug; I didn't have a test case that used a lambda.) I have opened a pull request that fixes the crash. |
No worries. I just hoped update to 3.7.1 to auto fix a half of the remaining 350+ issues :) |
Code: https://github.com/vlsi/calcite/blob/78d97778f938ab435851487f2e91fcfd1d293914/core/src/main/java/org/apache/calcite/sql/parser/SqlParserPos.java#L41
The error is not present in 3.7.0
Error:
The text was updated successfully, but these errors were encountered: