feiniaofeiafei commented on code in PR #67809:
URL: https://github.com/apache/doris/pull/67809#discussion_r4044528436
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/GeneratedColumnDesc.java:
##########
@@ -50,7 +55,16 @@ public void setExpr(Expr expr) {
}
public Expression getExpression() {
- return expression;
+ // CREATE TABLE LIKE must also parse the expression under its original
session settings.
+ return sessionVariables.isPresent() ? new
NereidsParser().parseExpression(exprSql) : expression;
Review Comment:
no need to processed because in old version , user hardly use Generated
columns.
--
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]