[fix](nereids) fix illegal import of guava's Throwables (#45876)
fix illegal import of guava's Throwables
This commit is contained in:
@ -58,13 +58,13 @@ import com.google.common.annotations.VisibleForTesting;
|
||||
import com.google.common.base.Stopwatch;
|
||||
import com.google.common.base.Supplier;
|
||||
import com.google.common.base.Suppliers;
|
||||
import com.google.common.base.Throwables;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.common.collect.Multimap;
|
||||
import com.google.common.collect.Sets;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.sparkproject.guava.base.Throwables;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.util.ArrayList;
|
||||
@ -570,7 +570,7 @@ public class StatementContext implements Closeable {
|
||||
}
|
||||
}
|
||||
if (throwable != null) {
|
||||
Throwables.propagateIfInstanceOf(throwable, RuntimeException.class);
|
||||
Throwables.throwIfInstanceOf(throwable, RuntimeException.class);
|
||||
throw new IllegalStateException("Release resource failed", throwable);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user