{"action":"created","issue":{"url":"https://api.github.com/repos/sharding-sphere/sharding-sphere/issues/1715","repository_url":"https://api.github.com/repos/sharding-sphere/sharding-sphere","labels_url":"https://api.github.com/repos/sharding-sphere/sharding-sphere/issues/1715/labels{/name}","comments_url":"https://api.github.com/repos/sharding-sphere/sharding-sphere/issues/1715/comments","events_url":"https://api.github.com/repos/sharding-sphere/sharding-sphere/issues/1715/events","html_url":"https://github.com/sharding-sphere/sharding-sphere/issues/1715","id":395992785,"node_id":"MDU6SXNzdWUzOTU5OTI3ODU=","number":1715,"title":"error when Logic table have the same name as Actual table .","user":{"login":"quaider","id":12459496,"node_id":"MDQ6VXNlcjEyNDU5NDk2","avatar_url":"https://avatars3.githubusercontent.com/u/12459496?v=4","gravatar_id":"","url":"https://api.github.com/users/quaider","html_url":"https://github.com/quaider","followers_url":"https://api.github.com/users/quaider/followers","following_url":"https://api.github.com/users/quaider/following{/other_user}","gists_url":"https://api.github.com/users/quaider/gists{/gist_id}","starred_url":"https://api.github.com/users/quaider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quaider/subscriptions","organizations_url":"https://api.github.com/users/quaider/orgs","repos_url":"https://api.github.com/users/quaider/repos","events_url":"https://api.github.com/users/quaider/events{/privacy}","received_events_url":"https://api.github.com/users/quaider/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-01-04T16:48:19Z","updated_at":"2019-01-04T17:34:25Z","closed_at":null,"author_association":"NONE","body":"i just use database sharding not table sharding, but when Logic table have the same name as Actual table, some error occurs\r\n``` \r\nCaused by: java.sql.SQLException: Column name pattern can not be NULL or empty.\r\n```\r\nhere is my config of yaml\r\n```yaml\r\nshardingRule:\r\n  tables:\r\n   # same name as Actual table， but when i use ms_ds${1..2}.t_user1, it will be ok\r\n   # but when i change table name in mysql to t_user1，then ms_ds${1..2}.t_user1 does not work either\r\n    t_user:\r\n      actualDataNodes: ms_ds${1..2}.t_user\r\n      databaseStrategy:\r\n        inline:\r\n          shardingColumn: id\r\n          algorithmExpression: ms_ds${id % 2 + 1}\r\n\r\n      keyGeneratorColumnName: id\r\n```\r\n\r\ni think it may be a bug\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sharding-sphere/sharding-sphere/issues/comments/451512671","html_url":"https://github.com/sharding-sphere/sharding-sphere/issues/1715#issuecomment-451512671","issue_url":"https://api.github.com/repos/sharding-sphere/sharding-sphere/issues/1715","id":451512671,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTUxMjY3MQ==","user":{"login":"terrymanu","id":5516298,"node_id":"MDQ6VXNlcjU1MTYyOTg=","avatar_url":"https://avatars1.githubusercontent.com/u/5516298?v=4","gravatar_id":"","url":"https://api.github.com/users/terrymanu","html_url":"https://github.com/terrymanu","followers_url":"https://api.github.com/users/terrymanu/followers","following_url":"https://api.github.com/users/terrymanu/following{/other_user}","gists_url":"https://api.github.com/users/terrymanu/gists{/gist_id}","starred_url":"https://api.github.com/users/terrymanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrymanu/subscriptions","organizations_url":"https://api.github.com/users/terrymanu/orgs","repos_url":"https://api.github.com/users/terrymanu/repos","events_url":"https://api.github.com/users/terrymanu/events{/privacy}","received_events_url":"https://api.github.com/users/terrymanu/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T17:34:25Z","updated_at":"2019-01-04T17:34:25Z","author_association":"MEMBER","body":"## Bug Report\r\n\r\n**For English only**, other languages will not accept.\r\n\r\nBefore report a bug, make sure you have:\r\n\r\n- Searched open and closed [GitHub issues](https://github.com/sharding-sphere/sharding-sphere/issues).\r\n- Read documentation: [ShardingSphere Doc](http://shardingsphere.io/document/current/en/overview/).\r\n\r\nPlease pay attention on issues you submitted, because we maybe need more details. \r\nIf no response **more than 7 days** and we cannot reproduce it on current information, we will **close it**.\r\n\r\nPlease answer these questions before submitting your issue. Thanks!\r\n\r\n### Which version of ShardingSphere did you use?\r\n\r\n### Which project did you use? Sharding-JDBC or Sharding-Proxy?\r\n\r\n### Expected behavior\r\n\r\n### Actual behavior\r\n\r\n### Reason analyze (If you can)\r\n\r\n### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.\r\n\r\n### Example codes for reproduce this issue (such as a github link).\r\n"}}
{"actor":{"display_login":"terrymanu"}}