RaigorJiang opened a new pull request, #19010:
URL: https://github.com/apache/shardingsphere/pull/19010

   ### Before
   The `xxx_strategy_type` is incorrect, `inline` is not a type of strategy.
   ```sq
   mysql> show sharding table rules\G;
   *************************** 1. row ***************************
                               table: t_order_item
                   actual_data_nodes: ds_${0..1}.t_order_item_${0..1}
                 actual_data_sources:
              database_strategy_type: inline
            database_sharding_column: user_id
    database_sharding_algorithm_type: inline
   database_sharding_algorithm_props: 
algorithm-expression=t_order_item_${user_id % 2}
                 table_strategy_type: inline
               table_sharding_column: order_id
       table_sharding_algorithm_type: inline
      table_sharding_algorithm_props: 
algorithm-expression=t_order_item_${order_id % 2}
                 key_generate_column: id
                  key_generator_type: snowflake
                 key_generator_props:
   
   
   ```
   
   ### After
   ```sql
   mysql> show sharding table rules\G;
   *************************** 1. row ***************************
                               table: t_order_item
                   actual_data_nodes: ds_${0..1}.t_order_item_${0..1}
                 actual_data_sources:
              database_strategy_type: STANDARD
            database_sharding_column: user_id
    database_sharding_algorithm_type: inline
   database_sharding_algorithm_props: 
algorithm-expression=t_order_item_${user_id % 2}
                 table_strategy_type: STANDARD
               table_sharding_column: order_id
       table_sharding_algorithm_type: inline
      table_sharding_algorithm_props: 
algorithm-expression=t_order_item_${order_id % 2}
                 key_generate_column: id
                  key_generator_type: snowflake
                 key_generator_props:
   ```
   
   


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