You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "stalary (via GitHub)" <gi...@apache.org> on 2023/01/30 09:43:01 UTC
[GitHub] [doris] stalary opened a new pull request, #16255: [Bug](CTAS): Ctas rollback ignore some case
stalary opened a new pull request, #16255:
URL: https://github.com/apache/doris/pull/16255
# Proposed changes
Issue Number: close #xxx
## Problem summary
Describe your changes.
## Checklist(Required)
1. Does it affect the original behavior:
- [ ] Yes
- [ ] No
- [ ] I don't know
2. Has unit tests been added:
- [ ] Yes
- [ ] No
- [ ] No Need
3. Has document been added or modified:
- [ ] Yes
- [ ] No
- [ ] No Need
4. Does it need to update dependencies:
- [ ] Yes
- [ ] No
5. Are there any changes that cannot be rolled back:
- [ ] Yes (If Yes, please explain WHY)
- [ ] No
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman merged pull request #16255: [Bug](CTAS): Ctas rollback ignore some case
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman merged PR #16255:
URL: https://github.com/apache/doris/pull/16255
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #16255: [Bug](CTAS): Ctas rollback ignore some case
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #16255:
URL: https://github.com/apache/doris/pull/16255#issuecomment-1421828064
PR approved by anyone and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] hello-stephen commented on pull request #16255: [Bug](CTAS): Ctas rollback ignore some case
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #16255:
URL: https://github.com/apache/doris/pull/16255#issuecomment-1408610255
TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.17 seconds
load time: 496 seconds
storage size: 17122635726 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230130131304_clickbench_pr_87143.html
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #16255: [Bug](CTAS): Ctas rollback ignore some case
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #16255:
URL: https://github.com/apache/doris/pull/16255#issuecomment-1421827975
PR approved by at least one committer and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman commented on a diff in pull request #16255: [Bug](CTAS): Ctas rollback ignore some case
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman commented on code in PR #16255:
URL: https://github.com/apache/doris/pull/16255#discussion_r1098082609
##########
fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java:
##########
@@ -262,6 +262,7 @@ public class SessionVariable implements Serializable, Writable {
public static final String ENABLE_FILE_CACHE = "enable_file_cache";
public static final String GROUP_BY_AND_HAVING_USE_ALIAS_FIRST = "group_by_and_having_use_alias_first";
+ public static final String ENABLE_CTAS_ERROR_DROP_TABLE = "enable_ctas_error_drop_table";
Review Comment:
How about:
drop_table_if_ctas_failed
##########
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java:
##########
@@ -1954,18 +1955,27 @@ private void handleCtasStmt() {
try {
parsedStmt = ctasStmt.getInsertStmt();
execute();
+ if (MysqlStateType.ERR.equals(context.getState().getStateType())) {
+ LOG.warn("CTAS insert data error, stmt={}", ctasStmt.toSql());
+ handleCtasRollback(ctasStmt.getCreateTableStmt().getDbTbl());
+ }
} catch (Exception e) {
e.printStackTrace();
Review Comment:
remove this e.printStackTrace()
##########
fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java:
##########
@@ -691,6 +692,10 @@ public class SessionVariable implements Serializable, Writable {
@VariableMgr.VarAttr(name = ENABLE_FILE_CACHE, needForward = true)
public boolean enableFileCache = true;
+ // Whether drop table when create table as select insert data appear error.
+ @VariableMgr.VarAttr(name = ENABLE_CTAS_ERROR_DROP_TABLE)
Review Comment:
```suggestion
@VariableMgr.VarAttr(name = ENABLE_CTAS_ERROR_DROP_TABLE needForward=true)
```
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org