You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "bobhan1 (via GitHub)" <gi...@apache.org> on 2023/05/26 03:35:41 UTC

[GitHub] [doris] bobhan1 commented on issue #18501: [Enhancement] add auto increment id support

bobhan1 commented on issue #18501:
URL: https://github.com/apache/doris/issues/18501#issuecomment-1563767938

   I think we should put the process of filling values for auto increment cols in XXXScaner instead of in `VOlapTable::sink()`, bacause `VOlapTable` lacks some neccessary information here. 
   For example, if the user add parameter `-H columns: c1, c2=some_func(c1)` in a stream load task, where `c1` is an auto increment column. We can only calculate the values of `c2` in `VFileScanner::_fill_missing_columns()` becasue `VExprContex` for column transformation is only stored in `VFileScanner` and `VOlapTable` doesn't have the information about this. 
   So for load task, the process of generating and filling auto increment values should be in `XXXScanner::_get_block_impl()`.


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org