-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Enhancement][Regression-Test] enhancement for regression-test framework #8930
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
Conversation
e0316d6 to
aa785ea
Compare
| } | ||
|
|
||
| static String checkCell(String info, int line, String expect_cell, String real_cell, String data_type) { | ||
| if(data_type == "FLOAT" || data_type == "DOUBLE") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest change to camel case
| class JdbcUtils { | ||
| static List<List<Object>> executeToList(Connection conn, String sql) { | ||
| static List<List<Object>> executeToList(Connection conn, String sql, Metaholder holder) { | ||
| conn.prepareStatement(sql).withCloseable { stmt -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest new Metaholder in JdbcUtils and return, and you can extract the interest metadata out of the Connection life cycle safely.
e.g.
class Metadata {
public final List<String> columnNames;
public final List<String> columnTypes;
}
static Tuple2<List<List<Object>>, Metadata> executeToList(Connection conn, String sql) {
def metadata = new Metadata()
resultList = ...
metadata.columnNames = ...
metadata.columnTypes = ...
return [resultList, metadata]
}then, you can take result by this code
def (result, metadata) = JdbcUtils.executeToList(connnection, sql)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
update update
fix reset
4228a3c to
7cd7982
Compare
|
+1 |
1 similar comment
|
+1 |
HappenLee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by anyone and no changes requested. |
Proposed changes
@924060929 PTAL
Issue Number: close #8729
Problem Summary:
Describe the overview of changes.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...