You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "yinhongke (via GitHub)" <gi...@apache.org> on 2023/05/16 05:03:36 UTC
[GitHub] [shardingsphere] yinhongke opened a new issue, #25693: RROR 12000 (42000): You have an error in your SQL syntax: REFRESH TABLE METADATA delivery FROM actualDataNodes ds_0 SCHEMA jd, no viable alternative at input 'REFRESH' at line 1, position 0, near [@0,0:6='REFRESH',<809>,1:0]
yinhongke opened a new issue, #25693:
URL: https://github.com/apache/shardingsphere/issues/25693
run "REFRESH TABLE METADATA delivery FROM actualDataNodes 'delivery_20230506' ds_0 SCHEMA jdw" error
## Question
**For English only**, other languages will not accept.
Before asking a question, make sure you have:
- Googled your question.
- Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
- Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will **close it**.
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] yinhongke commented on issue #25693: RROR 12000 (42000): You have an error in your SQL syntax: REFRESH TABLE METADATA delivery FROM actualDataNodes ds_0 SCHEMA jd, no viable alternative at input 'REFRESH' at line 1, position 0, near [@0,0:6='REFRESH',<809>,1:0]
Posted by "yinhongke (via GitHub)" <gi...@apache.org>.
yinhongke commented on issue #25693:
URL: https://github.com/apache/shardingsphere/issues/25693#issuecomment-1549165360
above is my config.yml. I don't know how to reflash actualDataNodes by distsql
--
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] yinhongke commented on issue #25693: RROR 12000 (42000): You have an error in your SQL syntax: REFRESH TABLE METADATA delivery FROM actualDataNodes ds_0 SCHEMA jd, no viable alternative at input 'REFRESH' at line 1, position 0, near [@0,0:6='REFRESH',<809>,1:0]
Posted by "yinhongke (via GitHub)" <gi...@apache.org>.
yinhongke commented on issue #25693:
URL: https://github.com/apache/shardingsphere/issues/25693#issuecomment-1549602606
I can run “REFRESH TABLE METADATA delivery actualDataNodes 'delivery_20230506' ds_0 SCHEMA test” no error,but not effective
--
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] yinhongke commented on issue #25693: RROR 12000 (42000): You have an error in your SQL syntax: REFRESH TABLE METADATA delivery FROM actualDataNodes ds_0 SCHEMA jd, no viable alternative at input 'REFRESH' at line 1, position 0, near [@0,0:6='REFRESH',<809>,1:0]
Posted by "yinhongke (via GitHub)" <gi...@apache.org>.
yinhongke commented on issue #25693:
URL: https://github.com/apache/shardingsphere/issues/25693#issuecomment-1549167871
"REFRESH TABLE METADATA delivery FROM actualDataNodes 'delivery_20230506' ds_0 SCHEMA test" is my distsql script。
--
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] terrymanu commented on issue #25693: RROR 12000 (42000): You have an error in your SQL syntax: REFRESH TABLE METADATA delivery FROM actualDataNodes ds_0 SCHEMA jd, no viable alternative at input 'REFRESH' at line 1, position 0, near [@0,0:6='REFRESH',<809>,1:0]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #25693:
URL: https://github.com/apache/shardingsphere/issues/25693#issuecomment-1549148315
Please provide the necessary information following the issue template.
--
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] yinhongke commented on issue #25693: RROR 12000 (42000): You have an error in your SQL syntax: REFRESH TABLE METADATA delivery FROM actualDataNodes ds_0 SCHEMA jd, no viable alternative at input 'REFRESH' at line 1, position 0, near [@0,0:6='REFRESH',<809>,1:0]
Posted by "yinhongke (via GitHub)" <gi...@apache.org>.
yinhongke commented on issue #25693:
URL: https://github.com/apache/shardingsphere/issues/25693#issuecomment-1549161230
databaseName: test
dataSources:
ds_0:
url: jdbc:mysql://localhost:3306/test?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true
username: root
password: 12345678
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
rules:
- !SHARDING
tables:
delivery:
actualDataNodes: db.delivery,db.delivery_${2023..2024}0${1..9}0${1..9},db.delivery_${2023..2024}${10..12}0${1..9},db.delivery_${2023..2024}0${1..9}${10..31},db.delivery_${2023..2024}${10..12}${10..31}
tableStrategy:
standard:
shardingColumn: create_time
shardingAlgorithmName: delivery-table-inline
receive:
actualDataNodes: ds_0.receive_20230428,ds_0.receive_20230429,ds_0.receive_20230430,ds_0.receive_20230501,ds_0.receive_20230502,ds_0.receive_20230503,ds_0.receive_20230504,ds_0.receive_202300505,ds_0.receive_20230506,ds_0.receive_20230507
tableStrategy:
standard:
shardingColumn: create_time
shardingAlgorithmName: receive-table-inline
shardingAlgorithms:
delivery-table-inline:
type: INLINE
props:
algorithm-expression: delivery_$->{create_time.toString().substring(0,10).replace('-','')}
allow-range-query-with-inline-sharding: true
receive-table-inline:
type: INLINE
props:
algorithm-expression: receive_$->{create_time.toString().substring(0,10).replace('-','')}
allow-range-query-with-inline-sharding: true
--
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] terrymanu commented on issue #25693: RROR 12000 (42000): You have an error in your SQL syntax: REFRESH TABLE METADATA delivery FROM actualDataNodes ds_0 SCHEMA jd, no viable alternative at input 'REFRESH' at line 1, position 0, near [@0,0:6='REFRESH',<809>,1:0]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #25693:
URL: https://github.com/apache/shardingsphere/issues/25693#issuecomment-1549909414
what is actualDataNodes? The SQL pattern is: ` 'REFRESH' 'TABLE' 'METADATA' (tableName | tableName 'FROM' 'STORAGE' 'UNIT' storageUnitName ('SCHEMA' schemaName)?)?`
FYI: https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/refresh-table-metadata/
--
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