You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "JinZhang-96 (via GitHub)" <gi...@apache.org> on 2024/03/14 09:50:31 UTC

[I] The keyGenerateStrategy in version 5.2.0 is not functional, but it works in version 5.4.0. [shardingsphere]

JinZhang-96 opened a new issue, #30484:
URL: https://github.com/apache/shardingsphere/issues/30484

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   5.2.0
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC 
   ### Expected behavior
   keyGenerateStrategy is able use
   ### Actual behavior
   keyGenerateStrategy is unable use
   ### Reason analyze (If you can)
   upgrad 5.4.0
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   INSERT INTO TM_ELEMENT_1 (ELE_CODE, ELE_NAME, MAX_LEVEL, ELE_TYPE, GET_TYPE, SERVER_URL, DATA_SOURCE, TABLE_NAME, STATUS, LAST_VERSION)
   VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ::: [code1, name1, 5, 1, 2, http://example.com, example_db, example_table, 1, 0]
   ### Example codes for reproduce this issue (such as a github link).
   rules:
     - !SHARDING
       tables:
         TM_ELEMENT:
           actualDataNodes: element.TM_ELEMENT_${0..2}
           tableStrategy:
             standard:
               shardingColumn: ID
               shardingAlgorithmName: TM_ELEMENT_INLINE
           keyGenerateStrategy:
             column: ID
             keyGeneratorName: snowflake
       shardingAlgorithms:
         TM_ELEMENT_INLINE:
           type: INLINE
           props:
             algorithm-expression: TM_ELEMENT_${Math.abs(ID.hashCode()) % 3}
       keyGenerators:
         snowflake:
           type: SNOWFLAKE


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


Re: [I] The keyGenerateStrategy in version 5.2.0 is not functional, but it works in version 5.4.0. [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #30484: The keyGenerateStrategy in version 5.2.0 is not functional, but it works in version 5.4.0.
URL: https://github.com/apache/shardingsphere/issues/30484


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


Re: [I] The keyGenerateStrategy in version 5.2.0 is not functional, but it works in version 5.4.0. [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #30484:
URL: https://github.com/apache/shardingsphere/issues/30484#issuecomment-2212335480

   Then please upgrade the version to 5.4.0 please


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


Re: [I] The keyGenerateStrategy in version 5.2.0 is not functional, but it works in version 5.4.0. [shardingsphere]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #30484:
URL: https://github.com/apache/shardingsphere/issues/30484#issuecomment-2053745577

   There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.


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