morningman commented on code in PR #12111:
URL: https://github.com/apache/doris/pull/12111#discussion_r956745012


##########
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java:
##########
@@ -972,8 +974,21 @@ private boolean handleSelectRequestInFe(SelectStmt 
parsedSelectStmt) throws IOEx
             Expr expr = item.getExpr();
             String columnName = columnLabels.get(i);
             if (expr instanceof LiteralExpr) {
-                columns.add(new Column(columnName, PrimitiveType.VARCHAR));
-                data.add(expr.getStringValue());
+                columns.add(new Column(columnName, expr.getType()));
+                if (expr instanceof NullLiteral) {
+                    data.add(null);
+                } else if (expr instanceof FloatLiteral) {
+                    if (expr.getType() == Type.TIME || expr.getType() == 
Type.TIMEV2) {

Review Comment:
   Please add some comment for this case



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to