Jibing-Li commented on PR #9593: URL: https://github.com/apache/incubator-doris/pull/9593#issuecomment-1129804041
> > > How many steps are you planning to implement this in? I don't see the sync logic after schema change. > > > > > > This is the only PR to implement this. We don't need to sync the changed schema, it is read the schema from HMS every time. So it is automatically synced. > > It only sync once when creating the table. When the table schema is changed in Hive for a existed table in Doris, the schema in Doris also need to be updated. How to handle this case? Drop and recreate the table in Doris? In the code, we don't keep the schema in Catalog, the schema is fetched from HMS every time when getBaseSchema is called, so it is always consistent with the Hive schema. getBaseSchema is called when user execute describe or query statement. It was tested and the behavior looks correct. -- 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