You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/12/08 08:14:17 UTC
[GitHub] [shardingsphere] lanchengx opened a new issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
lanchengx opened a new issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998
For details, please refer to https://github.com/apache/shardingsphere/issues/13994
The ANTLR definition syntax is as follows:
```sql
SHOW SHARDING KEY GENERATORS
```
Examples are as follows:
```sql
> SHOW SHARDING KEY GENERATORS;
+-------------------------+--------+-------------------+
| name | type | props |
+-------------------------+----------------------------+
| uuid_key_generator | uuid | "worker-id"=123 |
+-------------------------+--------+-------------------+
```
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] lanchengx commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
lanchengx commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-994218865

could you determine if there is any duplication in your project?
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-995394635
> Is this right?
Yes, it is right.
@lanchengx, please help to review, thanks~
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-992080938
Wecome @CrackerSuperior ,
This is not an urgent task, you can try to solve it for a few days, @lanchengx can also help you.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-992032604
If I want to develop this, is there a time limit?
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-994349726
> * `parse.xml` was removed in the submission of `e7a4d7c718436bf87ca8830a7772af0f3fe7f821`, your project may not be fully synchronized with the master,
> * If there is no problem with the test, you can submit a PR
I haven't done anything like this before, what should I do(submit a PR)?
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-994226437



is this normal? Why are there two the same? @lanchengx
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang closed issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-995387584
> This document may help: https://shardingsphere.apache.org/community/cn/contribute/contributor/

Is this right?
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] lanchengx commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
lanchengx commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-994249012
- `parse.xml` was removed in the submission of `e7a4d7c718436bf87ca8830a7772af0f3fe7f821`, your project may not be fully synchronized with the master,
- If there is no problem with the test, you can submit a PR
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-992081308
> Wecome @CrackerSuperior , This is not an urgent task, you can try to solve it for a few days, @lanchengx can also help you.
nice,thanks
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-994230575

I commented out the parse.xml file and the semantic test passed. What should I do next?
@lanchengx
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-993705588
When I was doing the parsing test of the grammar definition, the following error occurred
``` java
java.lang.ExceptionInInitializerError
at org.apache.shardingsphere.test.sql.parser.parameterized.DistSQLParserParameterizedTest.<clinit>(DistSQLParserParameterizedTest.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.runners.Parameterized.allParameters(Parameterized.java:280)
at org.junit.runners.Parameterized.<init>(Parameterized.java:248)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:50)
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
Caused by: java.lang.IllegalStateException: Find duplicated Case ID: parse-sql
at com.google.common.base.Preconditions.checkState(Preconditions.java:589)
at org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.distsql.loader.DistSQLCasesLoader.buildCaseMap(DistSQLCasesLoader.java:48)
at org.apache.shardingsphere.test.sql.parser.parameterized.loader.CasesLoader.loadFromTargetDirectory(CasesLoader.java:65)
at org.apache.shardingsphere.test.sql.parser.parameterized.loader.CasesLoader.load(CasesLoader.java:51)
at org.apache.shardingsphere.test.sql.parser.parameterized.loader.CasesLoader.<init>(CasesLoader.java:45)
at org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.distsql.loader.DistSQLCasesLoader.<init>(DistSQLCasesLoader.java:41)
at org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.CasesRegistry.<init>(CasesRegistry.java:41)
at org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.CasesRegistry.<clinit>(CasesRegistry.java:29)
... 26 more
```
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-992615599
> > Is this effect okay?
>
> Yes, It looks very good!
Okay, if there is free time after get off work tomorrow, I will finish the remaining unit tests and other parts
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-992604361


Is this effect okay?
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-992610529
> Is this effect okay?
Yes, It looks very good!
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-994359594
This document may help:
https://shardingsphere.apache.org/community/cn/contribute/contributor/
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] CrackerSuperior commented on issue #13998: Add syntax for `SHOW SHARDING KEY GENERATORS`
Posted by GitBox <gi...@apache.org>.
CrackerSuperior commented on issue #13998:
URL: https://github.com/apache/shardingsphere/issues/13998#issuecomment-994221603
> 
>
> could you determine if there is any duplication in your project?

It is like 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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org