File tree Expand file tree Collapse file tree
legacy/src/main/java/org/opensearch/sql/legacy/plugin
plugin/src/main/java/org/opensearch/sql/plugin/rest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323import java .util .regex .Pattern ;
2424import org .apache .logging .log4j .LogManager ;
2525import org .apache .logging .log4j .Logger ;
26+ import org .json .JSONException ;
2627import org .opensearch .OpenSearchException ;
2728import org .opensearch .common .inject .Injector ;
2829import org .opensearch .common .settings .Settings ;
@@ -281,7 +282,8 @@ private static boolean isClientError(Exception e) {
281282 || e instanceof SqlAnalysisException
282283 || e instanceof SyntaxCheckException
283284 || e instanceof SemanticCheckException
284- || e instanceof ExpressionEvaluationException ;
285+ || e instanceof ExpressionEvaluationException
286+ || e instanceof JSONException ;
285287 }
286288
287289 private void sendResponse (
Original file line number Diff line number Diff line change 3737import org .opensearch .sql .plugin .transport .TransportPPLQueryRequest ;
3838import org .opensearch .sql .plugin .transport .TransportPPLQueryResponse ;
3939import org .opensearch .transport .client .node .NodeClient ;
40+ import org .json .JSONException ;
4041
4142public class RestPPLQueryAction extends BaseRestHandler {
4243 public static final String QUERY_API_ENDPOINT = "/_plugins/_ppl" ;
@@ -59,7 +60,8 @@ private static boolean isClientError(Exception e) {
5960 || e instanceof QueryEngineException
6061 || e instanceof SyntaxCheckException
6162 || e instanceof DataSourceClientException
62- || e instanceof IllegalAccessException ;
63+ || e instanceof IllegalAccessException
64+ || e instanceof JSONException ;
6365 }
6466
6567 @ Override
You can’t perform that action at this time.
0 commit comments