sydgeek commented on issue #10971:
URL: 
https://github.com/apache/shardingsphere/issues/10971#issuecomment-904457043


   @strongduanmu I don't find somewhere use instance of DDLStatement, in other 
words, the TablesContext never be used.
   
   Some places(like ShardingInsertStatementValidator#preValidate) will validate 
tableName in the TablesContext, if it doesn't exist, an exception will be 
thrown.
   
   In git history, CreateViewStatementContext and AlterViewStatementContext are 
same at the beginning,  <a 
href='https://github.com/apache/shardingsphere/commit/e4428d6a4fb312a4579e8320e4e019b5d05dc5cc#diff-5586a6cfe067d10a31ca2cb888171a24cc28a2ede2390ec072026dff6ed15914'>AlterViewStatementContext</a>
  was changed afterwards, but CreateViewStatementContext  never be changed.
   
   I am not familiar with their design, but I speculate that this is a mistake. 
However, you still need to decide whether it is wrong at the end.


-- 
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]


Reply via email to