You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "dataroaring (via GitHub)" <gi...@apache.org> on 2023/04/09 14:23:07 UTC
[GitHub] [doris] dataroaring opened a new issue, #18501: [Enhancement] add auto increment id support
dataroaring opened a new issue, #18501:
URL: https://github.com/apache/doris/issues/18501
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
### Description
https://github.com/apache/doris/issues/15927 requests auto increment id for more real-time bitmap usage.
### Solution
- Syntax: mysql compatible. https://dev.mysql.com/doc/refman/8.0/en/example-auto-increment.html
` CREATE TABLE animals (
id MEDIUMINT NOT NULL AUTO_INCREMENT,
name CHAR(30) NOT NULL,
);
`
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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.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
[GitHub] [doris] cnissnzg commented on issue #18501: [Enhancement] add auto increment id support
Posted by "cnissnzg (via GitHub)" <gi...@apache.org>.
cnissnzg commented on issue #18501:
URL: https://github.com/apache/doris/issues/18501#issuecomment-1501306974
I am willing to submit a PR for this issue
--
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
[GitHub] [doris] dataroaring closed issue #18501: [Enhancement] add auto increment id support
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring closed issue #18501: [Enhancement] add auto increment id support
URL: https://github.com/apache/doris/issues/18501
--
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
[GitHub] [doris] bobhan1 commented on issue #18501: [Enhancement] add auto increment id support
Posted by "bobhan1 (via GitHub)" <gi...@apache.org>.
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