jingshanglu commented on issue #7998:
URL: https://github.com/apache/shardingsphere/issues/7998#issuecomment-724486937
@strongduanmu @tristaZero I think it's better to use a new subclass of
`ExpressionSegment` to describe functions.Becausel, functions not only exist in
projection. There are two ways to define a function expression. One is to see
the function function through the class name,like that:
```
class CharFunction implements ExpressionSegment {
List<ExpressionSegment> parameters;
}
```
and the other is to know the function function function through the
attribute in the class, like that:
```
class Function implements ExpressionSegment {
String/enum type/methodName;
List<ExpressionSegment> parameters;
```
According our sence, we choose one of them.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]