You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "Xuxiaotuan (via GitHub)" <gi...@apache.org> on 2024/03/18 14:20:08 UTC
[I] [Enhancement] Support starting with a number When creating a table [doris]
Xuxiaotuan opened a new issue, #32425:
URL: https://github.com/apache/doris/issues/32425
### 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
Our company now has a previous business that needs to be migrated to doris. There are about tens of thousands of tables. However, in the previous business, the table names were md5, so that we can get a collection with only numbers and characters. It is inevitable that there will be numbers. Begins with the form.
But I found that FE in doris is only allowed to start with a letter
[private static final String TABLE_NAME_REGEX = "^[a-zA-Z][a-zA-Z0-9-_]*$";](https://github.com/apache/doris/blob/2d1865656793a7c9b01fd6da8ee03a8b7b247133/fe/fe-core/src/main/java/org/apache/doris/common/FeNameFormat.java#L35)
I browsed related isuse such as #3415 , #21057 and no mention of numbers
I referred to open source projects of the same type and asked whether table names starting with numbers should be supported.
[public static final String TABLE_NAME_REGEX = "^[^\0]{1,1024}$";](
https://github.com/StarRocks/starrocks/blob/2236631e8b74380c1a255285b360eadbd79acaf6/fe/fe-core/src/main/java/com/starrocks/sql/analyzer/FeNameFormat.java#L37)
If the number is called the table name prefix, it will have an overall impact. I hope you can tell me. Thank you very much.
### Solution
Supports table names prefixed with numbers and characters.
At present, I have compiled and run it with the master branch, and it is working normally. I hope to get answers, and I am also willing to submit PR.

### Are you willing to submit PR?
- [X] 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
Re: [I] [Enhancement] Support starting with a number When creating a table [doris]
Posted by "steveGuRen (via GitHub)" <gi...@apache.org>.
steveGuRen commented on issue #32425:
URL: https://github.com/apache/doris/issues/32425#issuecomment-2109461649
我需要这个,有人知道怎么搞吗?
--
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
Re: [I] [Enhancement] Support starting with a number When creating a table [doris]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #32425: [Enhancement] Support starting with a number When creating a table
URL: https://github.com/apache/doris/issues/32425
--
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
Re: [I] [Enhancement] Support starting with a number When creating a table [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #32425:
URL: https://github.com/apache/doris/issues/32425#issuecomment-3288991780
We're closing this issue because it hasn't been updated in a while.
If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!
--
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