yangzhg commented on a change in pull request #6504: URL: https://github.com/apache/incubator-doris/pull/6504#discussion_r696226173
########## File path: fe/fe-core/src/main/java/org/apache/doris/analysis/FunctionCallExpr.java ########## @@ -162,6 +167,29 @@ protected FunctionCallExpr(FunctionCallExpr other) { fn = other.fn; } + public void dealJsonTypeFun() { + String res = ""; + extra_mark = extra_mark + "#"; + for (int i = 0; i < children.size(); ++i) { + Type type = getChild(i).getType(); + if (type.isNull()) { //Not to return NULL directly, so save string, but flag is '0' + children.set(i, new StringLiteral("NULL")); + res = res + "0"; + } else if (type.isBoolean()) { + res = res + "1"; + } else if (type.isNumericType()) { + res = res + "2"; + } else if (type.isTime()) { + res = res + "3"; + } else { + res = res + "4"; + } + } + res = res + extra_mark; + children.add(new StringLiteral(res)); + LOG.info(res + " sql: " + this.toSql()); Review comment: remove this -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org