You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/10/10 06:44:07 UTC

[GitHub] [shardingsphere] mazhai opened a new issue, #11713: The query result is incorrect

mazhai opened a new issue, #11713:
URL: https://github.com/apache/shardingsphere/issues/11713

   ### Which version of ShardingSphere did you use?
   5.0.0-beta
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   I have an executed SQL
   
   ```
    select a.ct from(
      SELECT
     count( 1 ) as ct
    FROM
     service_attendance_detail sad
    WHERE
      sad.course_date between '2021-07-01 00:00:00' and '2021-10-31 00:00:00'
    ) a
   ```
   `service_attendance_detail` is sharding table
   
   config-sharding.yaml
   ```
   rules:
     - !SHARDING
       tables:
         service_attendance_detail:
           actualDataNodes: ds_0.service_attendance_detail_2021_0$->{1..9},ds_0.service_attendance_detail_2021_1$->{0..2}
           tableStrategy:
             standard:
               shardingColumn: course_date
               shardingAlgorithmName: t_order_inline #截取该字段的5-6位决定落在哪张表
           keyGenerateStrategy:
             column: id
             keyGeneratorName: snowflake
       bindingTables:
         - service_attendance_detail
       shardingAlgorithms:
         t_order_inline:
           type: INTERVAL
           props:
             datetime-pattern: yyyy-MM-dd HH:mm:ss
             datetime-lower: "2021-01-01 00:00:00"
             sharding-suffix-pattern: _yyyy_MM # 表名后缀格式,一定要跟创建的表名后缀一致。
             datetime-upper: "2021-12-31 23:59:59"
             datetime-interval-unit: MONTHS # 按照月份分表
   ```
   I want the result
   ![image](https://user-images.githubusercontent.com/5811436/128663101-a31bc3a0-8f92-4d48-b41a-506e1ad1be9b.png)
   
   ### Actual behavior
   
   ![image](https://user-images.githubusercontent.com/5811436/128663120-bbc0c971-e13d-4538-9cbd-3d110ca6c515.png)
   The result is not one line, but one result every month, which is not what I want
   
   


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


[GitHub] [shardingsphere] RaigorJiang closed issue #11713: The query result is incorrect

Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #11713: The query result is incorrect
URL: https://github.com/apache/shardingsphere/issues/11713


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


[GitHub] [shardingsphere] github-actions[bot] commented on issue #11713: The query result is incorrect

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #11713:
URL: https://github.com/apache/shardingsphere/issues/11713#issuecomment-1272350791

   Hello , this issue has not received a reply for several days.
   This issue is supposed to be closed.


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


[GitHub] [shardingsphere] github-actions[bot] closed issue #11713: The query result is incorrect

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #11713: The query result is incorrect
URL: https://github.com/apache/shardingsphere/issues/11713


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


[GitHub] [shardingsphere] RaigorJiang commented on issue #11713: The query result is incorrect

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #11713:
URL: https://github.com/apache/shardingsphere/issues/11713#issuecomment-1386658657

   This issue has been inactive for too long, so I will close it.
   Users are advised to try the latest version, and if the problem reproduces, please reopen it or submit a new one.


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