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
Reduce memory usage of View object #1878
Conversation
@@ -5126,13 +5126,6 @@ public void createView(CreateViewStmt stmt) throws DdlException { | |||
View newView = new View(tableId, tableName, columns); | |||
newView.setComment(stmt.getComment()); | |||
newView.setInlineViewDef(stmt.getInlineViewDef()); | |||
newView.setOriginalViewDef(stmt.getInlineViewDef()); | |||
try { | |||
newView.init(); |
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.
Do we need to keep this init in order to return parse error ASAP?
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.
Actually, I don't know why it throws an exception here. the stmt string comes from QueryStmt.toSql()...
So there should be no exception thrown anymore.
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.
Maybe there is some bug in our toSql() implementation
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.
Add it back
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
ISSUE #1877
ISSUE #1881