This is an automated email from the ASF dual-hosted git repository.
yangzhg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new c844e60 [BUG] Fix the bug of `Desc Query` cause `Unknown error` and
some doc revise (#5921)
c844e60 is described below
commit c844e602a75372429ae8bf4246e8854df8d06669
Author: HappenLee <[email protected]>
AuthorDate: Thu May 27 22:21:31 2021 -0500
[BUG] Fix the bug of `Desc Query` cause `Unknown error` and some doc revise
(#5921)
---
docs/en/installing/compilation.md | 6 +++---
docs/zh-CN/administrator-guide/bucket-shuffle-join.md | 2 +-
docs/zh-CN/installing/compilation.md | 6 +++---
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 9 +++++++--
4 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/docs/en/installing/compilation.md
b/docs/en/installing/compilation.md
index 927fb31..9fd8f2b 100644
--- a/docs/en/installing/compilation.md
+++ b/docs/en/installing/compilation.md
@@ -51,10 +51,10 @@ Note: For different versions of Oris, you need to download
the corresponding mir
|---|---|---|
| apachedoris/doris-dev:build-env | before
[ff0dd0d](https://github.com/apache/incubator-doris/commit/ff0dd0d2daa588f18b6db56f947e813a56d8ec81)
| 0.8.x, 0.9.x |
| apachedoris/doris-dev:build-env-1.1 |
[ff0dd0d](https://github.com/apache/incubator-doris/commit/ff0dd0d2daa588f18b6db56f947e813a56d8ec81)
or later | 0.10.x or later |
-| apachedoris/doris-dev:build-env-1.2 |
[4ef5a8c](https://github.com/apache/incubator-doris/commit/4ef5a8c8560351d7fff7ff8fd51c4c7a75e006a8)
or later | 0.12.x or later |
-| apachedoris/doris-dev:build-env-1.3 |
[ad67dd3](https://github.com/apache/incubator-doris/commit/ad67dd34a04c1ca960cff38e5b335b30fc7d559f)
or later | 0.14.x or later |
+| apachedoris/doris-dev:build-env-1.2 |
[4ef5a8c](https://github.com/apache/incubator-doris/commit/4ef5a8c8560351d7fff7ff8fd51c4c7a75e006a8)
or later | 0.12.x - 0.14.0 |
+| apachedoris/doris-dev:build-env-1.3 |
[ad67dd3](https://github.com/apache/incubator-doris/commit/ad67dd34a04c1ca960cff38e5b335b30fc7d559f)
or later | later |
-Warning: Doris 0.14.0 still used apachedoris/doris-dev:build-env-1.2 to
compile. After thie version, the code will use
apachedoris/doris-dev:build-env-1.3 to compile . **In the docker image of
build-env-1.3, the default JDK version is upgraded to 11. So FE will use
OPENJDK 11 to compile. If the docker image after build-env-1.3 is used for
compilation of FE, the Java version of FE running env also needs to be upgraded
to JDK11 or above. Otherwise unexpected running errors may be caused. **
+Warning: Doris 0.14.0 still used apachedoris/doris-dev:build-env-1.2 to
compile. After thie version, the code will use
apachedoris/doris-dev:build-env-1.3 to compile . **In the docker image of
build-env-1.3, the default JDK version is upgraded to 11. So FE will use
OPENJDK 11 to compile. If the docker image after build-env-1.3 is used for
compilation of FE, the Java version of FE running env also needs to be upgraded
to JDK11, Otherwise unexpected running errors may be caused. **
2. Running Mirror
diff --git a/docs/zh-CN/administrator-guide/bucket-shuffle-join.md
b/docs/zh-CN/administrator-guide/bucket-shuffle-join.md
index 38cd33a..6f629dd 100644
--- a/docs/zh-CN/administrator-guide/bucket-shuffle-join.md
+++ b/docs/zh-CN/administrator-guide/bucket-shuffle-join.md
@@ -70,7 +70,7 @@ Doris支持的常规分布式Join方式包括了shuffle join 和broadcast join
set enable_bucket_shuffle_join = true;
```
-在FE进行分布式查询规划时,优先选择的顺序为 Colocate Join -> Bucket Shuffle Join -> Brocast Join ->
Shuffle Join。但是如果用户显式hint了Join的类型,如:
+在FE进行分布式查询规划时,优先选择的顺序为 Colocate Join -> Bucket Shuffle Join -> Broadcast Join
-> Shuffle Join。但是如果用户显式hint了Join的类型,如:
```
select * from test join [shuffle] baseall on test.k1 = baseall.k1;
diff --git a/docs/zh-CN/installing/compilation.md
b/docs/zh-CN/installing/compilation.md
index c54c3b2..16be7bc 100644
--- a/docs/zh-CN/installing/compilation.md
+++ b/docs/zh-CN/installing/compilation.md
@@ -51,10 +51,10 @@ under the License.
|---|---|---|
| apachedoris/doris-dev:build-env | before
[ff0dd0d](https://github.com/apache/incubator-doris/commit/ff0dd0d2daa588f18b6db56f947e813a56d8ec81)
| 0.8.x, 0.9.x |
| apachedoris/doris-dev:build-env-1.1 |
[ff0dd0d](https://github.com/apache/incubator-doris/commit/ff0dd0d2daa588f18b6db56f947e813a56d8ec81)
| 0.10.x, 0.11.x |
-| apachedoris/doris-dev:build-env-1.2 |
[4ef5a8c](https://github.com/apache/incubator-doris/commit/4ef5a8c8560351d7fff7ff8fd51c4c7a75e006a8)
| 0.12.x, 0.13 |
-| apachedoris/doris-dev:build-env-1.3 |
[ad67dd3](https://github.com/apache/incubator-doris/commit/ad67dd34a04c1ca960cff38e5b335b30fc7d559f)
| 0.14.x 或更新版本 |
+| apachedoris/doris-dev:build-env-1.2 |
[4ef5a8c](https://github.com/apache/incubator-doris/commit/4ef5a8c8560351d7fff7ff8fd51c4c7a75e006a8)
| 0.12.x - 0.14.0 |
+| apachedoris/doris-dev:build-env-1.3 |
[ad67dd3](https://github.com/apache/incubator-doris/commit/ad67dd34a04c1ca960cff38e5b335b30fc7d559f)
| 后续的发布版本 |
-注意: doris 0.14.0 版本仍然使用apachedoris/doris-dev:build-env-1.2
编译,之后的代码将使用apachedoris/doris-dev:build-env-1.3。**在build-env-1.3的docker镜像中,默认的JDK的版本升级到了11,所以FE将会使用OpenJDK
11进行编译。如果使用build-env-1.3之后的docker镜像进行FE编译的话,后续运行FE的Java版本也需要同时升级到JDK11以上,否则可能导致非预期的运行错误。**
+注意: doris 0.14.0 版本仍然使用apachedoris/doris-dev:build-env-1.2
编译,之后的代码将使用apachedoris/doris-dev:build-env-1.3。**在build-env-1.3的docker镜像中,默认的JDK的版本升级到了11,所以FE将会使用OpenJDK
11进行编译。如果使用build-env-1.3之后的docker镜像进行FE编译的话,后续运行FE的Java版本也需要同时升级到JDK11,否则可能导致非预期的运行错误。**
2. 运行镜像
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index 7957c8f..eaa5b29 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -294,7 +294,10 @@ public class StmtExecutor implements ProfileWriter {
context.setQueryId(newQueryId);
}
handleQueryStmt();
- writeProfile(true);
+ // explain query stmt do not have profile
+ if (!((QueryStmt) parsedStmt).isExplain()) {
+ writeProfile(true);
+ }
break;
} catch (RpcException e) {
if (i == retryTime - 1) {
@@ -320,7 +323,9 @@ public class StmtExecutor implements ProfileWriter {
} else if (parsedStmt instanceof InsertStmt) { // Must ahead of
DdlStmt because InserStmt is its subclass
try {
handleInsertStmt();
- writeProfile(true);
+ if (!((InsertStmt) parsedStmt).getQueryStmt().isExplain())
{
+ writeProfile(true);
+ }
} catch (Throwable t) {
LOG.warn("handle insert stmt fail", t);
// the transaction of this insert may already begun, we
will abort it at outer finally block.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]