linghengqian commented on issue #30815: URL: https://github.com/apache/shardingsphere/issues/30815#issuecomment-2044612289
- I must admit I kind of don't understand what you're doing. So I made some assumptions at https://github.com/linghengqian/demo-sharding/commit/98181ab258317d74cbe11cb67a82317bcfff0137 to fix the unit tests. 1. Your `rules[1].tables.analytics_event.actualDataNodes` is not a legal GroovyShell expression, it looks like there is an extra `}`. Refer to https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/expr/ . 2. Your `rules[1].shardingAlgorithms.analytics_event_inline.props.algorithm-expression` seems to expect to continue to configure the `Sharding` table on the `logical database` configured with `Read/write splitting`, but the context of `algorithm-expression` actually only knows `actual table` name, it doesn't know the `logical or actual database` name. You can try debugging into the algorithm class. -- 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]
