LakshSingla commented on code in PR #13926:
URL: https://github.com/apache/druid/pull/13926#discussion_r1155819906


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/indexing/error/QueryStackFault.java:
##########
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.druid.msq.indexing.error;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+import java.util.Objects;
+
+/**
+ * Fault to throw when the error cames from the druid native query stack while 
running in the MSQ engine .

Review Comment:
   ```suggestion
    * Encapsulates the native query stack errors
   ```



##########
docs/multi-stage-query/reference.md:
##########
@@ -679,6 +679,7 @@ The following table describes error codes you may encounter 
in the `multiStageQu
 | <a name="error_InsertTimeOutOfBounds">`InsertTimeOutOfBounds`</a> | A 
REPLACE query generated a timestamp outside the bounds of the TIMESTAMP 
parameter for your OVERWRITE WHERE clause.<br /> <br />To avoid this error, 
verify that the you specified is valid. | `interval`: time chunk interval 
corresponding to the out-of-bounds timestamp |
 | <a name="error_InvalidNullByte">`InvalidNullByte`</a> | A string column 
included a null byte. Null bytes in strings are not permitted. | `column`: The 
column that included the null byte |
 | <a name="error_QueryNotSupported">`QueryNotSupported`</a> | QueryKit could 
not translate the provided native query to a multi-stage query.<br /> <br 
/>This can happen if the query uses features that aren't supported, like 
GROUPING SETS. | |
+| <a name="error_QueryStackError">`QueryStackError`</a> | MSQ uses the native 
query engine to run the leaf stages. This error tells MSQ that error is in 
native query engine.<br /> <br /> Since this is a generic error, the user needs 
to look at the error message and stack trace to figure out the course of 
action. If the user is stuck, consider raising a github issue for assistance. | 
 `baseErrorMessage` error message from the native stack. |

Review Comment:
   We should rename either the description here to mention `QueryStack` (which 
seems incomplete, or rename the fault to `QueryStackErrorFault` because all of 
the faults in the docs are derived from their class names by removing the 
`-Fault` suffix.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to