steFaiz commented on PR #7921:
URL: https://github.com/apache/paimon/pull/7921#issuecomment-4544149687

   >I still think that adding columns should be done atomically. Can COMMENT be 
used to complete it?
   
   @JingsongLi Thanks for your advise! I think it's a wonderful solution, we 
could specify a  special format of comment, for example:
   ```sql
   ALTER TABLE T ADD picture BYTES COMMENT '`paimon.blob-field` Profile picture 
in JPEG'
   
   ALTER TABLE T ADD pic_desc BYTES COMMENT '`paimon.blob-descriptor-field` 
Profile picture descriptors in JPEG'
   ```
   we parse the first pair of Backtick -- '`', just like standard SQL. Then we 
mark blob-field and blob-descriptor-field immutable, always keep them 
consistent with actual schema.
   
   How do you think about that? I'm pleasant to work on 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to