Luminary-12138 opened a new issue, #33928:
URL: https://github.com/apache/shardingsphere/issues/33928

   VERSION:5.4.1
   `rules:
     - !SHARDING
       defaultDatabaseStrategy:
         none: {}
       defaultTableStrategy:
         none: {}
       autoTables:
         t_system_point_log: # 逻辑表名称
           actualDataSources: test
           shardingStrategy:
             standard:
               shardingColumn: school_code
               shardingAlgorithmName: auto_school_hash_mod
       tables:
         t_base_course_table_extra:
           actualDataNodes: 
test.t_base_course_table_extra_${0..9},test.t_base_course_table_extra_${['a','b','c','d','e','f']}
           tableStrategy:
             standard:
               shardingColumn: school_code
               shardingAlgorithmName: inline_school_code
       # 分片算法
       shardingAlgorithms:
         auto_school_hash_mod:
           type: HASH_MOD
           props:
             sharding-count: 3
         inline_school_code:
           type: INLINE
           props:
             ## schoolCode使用的UUID,十六进制,0-9a-f
             algorithm-expression: 
t_base_course_table_extra_${school_code.substring(0,1).toLowerCase()}
   props:
     sql-show: true`
   
   Under version 5.4.1, when I configure it in this way, a prompt of "Table or 
view %s does not exist" will appear when querying a single table.
   When using version 5.4.1, most of our tables are single tables that don't 
need to be partitioned. In order to avoid the problem of "Table or view %s does 
not exist", do we have to manually configure all the tables in the yml file? 
It's a bit cumbersome. Are there any other ways?
   
   


-- 
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