Skip to content

Do not support sum(if()) expression #2055

@joooohnli

Description

@joooohnli

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details.
If no response more than 7 days and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

3.1.0

Which project did you use? Sharding-JDBC or Sharding-Proxy?

Sharding-JDBC

Expected behavior

support

Actual behavior

do not

Reason analyze (If you can)

sql parsing error

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

  1. select sum(if(status=0, 1, 0)) from xx group by xx;
  2. Table 'xx.xx' doesn't exist

Example codes for reproduce this issue (such as a github link).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions