Skip to content

Commit

Permalink
optimize get column data type for descStmt
Browse files Browse the repository at this point in the history
  • Loading branch information
duanxujian committed May 21, 2024
1 parent ab7c08e commit cc79ae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,13 @@ public void analyze(Analyzer analyzer) throws UserException {
for (Column column : columns) {
List<String> row = Arrays.asList(
column.getName(),
column.getOriginType().toString(),
column.getOriginType().hideVersionForVersionColumn(true),
column.isAllowNull() ? "Yes" : "No",
((Boolean) column.isKey()).toString(),
column.getDefaultValue() == null
? FeConstants.null_string : column.getDefaultValue(),
"NONE"
);
row.set(1, column.getOriginType().hideVersionForVersionColumn(false));
totalRows.add(row);
}
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,12 @@ public static ProcResult createResult(List<Column> schema, Set<String> bfColumns
String extraStr = StringUtils.join(extras, ",");

List<String> rowList = Arrays.asList(column.getDisplayName(),
column.getOriginType().toString(),
column.getOriginType().hideVersionForVersionColumn(true),
column.isAllowNull() ? "Yes" : "No",
((Boolean) column.isKey()).toString(),
column.getDefaultValue() == null
? FeConstants.null_string : column.getDefaultValue(),
extraStr);

rowList.set(1, column.getOriginType().hideVersionForVersionColumn(false));
result.addRow(rowList);
}
return result;
Expand Down

0 comments on commit cc79ae2

Please sign in to comment.