Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for cluster can acquire multi be in same host and fixed some issues #47

Merged
merged 8 commits into from
Aug 26, 2017
Merged

support for cluster can acquire multi be in same host and fixed some issues #47

merged 8 commits into from
Aug 26, 2017

Conversation

chenhao7253886
Copy link
Contributor

No description provided.

@@ -155,7 +155,7 @@
ERR_CLUSTER_NAME_NULL(5041, new byte[] {'4', '2', '0', '0', '0'}, "No cluster name"),
ERR_CLUSTER_NO_PERMISSIONS(5042, new byte[] {'4', '2', '0', '0', '0'}, "No permissions"),
ERR_CLUSTER_CREATE_ISTANCE_NUM_ERROR(5043, new byte[] {'4', '2', '0', '0', '0'},
"Instance num can't be less than 0"),
"Instance num can't be less than or equal 0"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't be less than nor equal with 0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个确定吗?我怎么查了这么写没错啊

}
builder.addColumn(new Column(title, ColumnType.createVarchar(30)));
}
return builder.build();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个为什么不写成静态对象呢?每次生成的不是一样的么?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用其他地方的静态对象生成的,避免重复吧。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个没啥重复的吧?因为你每次build出来的内容都一样,那么写成一个静态的对象直接返回是没问题的

@@ -85,7 +85,7 @@ public static String getDbNameFromFullName(String db) {
* @return
*/
public static String getUsrNameFromFullName(String usr) {
if (checkName(usr)) {
if (!checkName(usr)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里难道不应该是checkName不符合后,返回的是参数而不是null么?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个我改下,应该返回参数更合理些。

}
builder.addColumn(new Column(title, ColumnType.createVarchar(30)));
}
return builder.build();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个没啥重复的吧?因为你每次build出来的内容都一样,那么写成一个静态的对象直接返回是没问题的

// Copyright 2017 The Apache Software Foundation
// Modifications copyright (C) 2017, Baidu.com, Inc.

// Licensed to the Apache Software Foundation (ASF) under one
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个Licence写的有问题,需要改下

@imay imay merged commit ab681f9 into apache:master Aug 26, 2017
stdpain pushed a commit to stdpain/incubator-doris that referenced this pull request Jul 5, 2021
HappenLee added a commit to HappenLee/incubator-doris that referenced this pull request Jul 15, 2021
HappenLee added a commit to HappenLee/incubator-doris that referenced this pull request Sep 7, 2021
starocean999 pushed a commit to starocean999/incubator-doris that referenced this pull request Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants