Jun10ng opened a new issue #16534:
URL: https://github.com/apache/shardingsphere/issues/16534


   ## Question
   
   Hi team,
   I hava a question about how to write sharding rule with **prefix** and 
**sharding-column**
   
   My current prop file map sharding job_lob_tab from `job_lob_0` to 
`job_lob_100`, and I want to modify it, to 
   **sharding job_lob_tab from `job_lob_00000000` to `job_lob_00000100` (for 
sharding table,padding 8 digits with 0)**
   
   ```
   
spring.shardingsphere.rules.sharding.tables.gs_job_log.actual-data-nodes=job_log_$->{0..100}
   
   
spring.shardingsphere.rules.sharding.sharding-algorithms.job-log-table-inline.type=INLINE
   
spring.shardingsphere.rules.sharding.sharding-algorithms.job-log-table-inline.props.algorithm-expression=gs_job_log_$->{job_group
 % 100}
   
   ```
   How should I modify it?
   
   I read the 
[docs](https://shardingsphere.apache.org/document/current/en/features/sharding/concept/inline-expression/),
 I only found an example with a prefix.
   <img width="844" alt="image" 
src="https://user-images.githubusercontent.com/46768176/161199167-400791fe-97c0-4e3c-94be-c8672ab9564f.png";>
   
   But I dont know how to embed my sharding-column `job_group` into it
   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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to