File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
src/sqlancer/databend/ast Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ package sqlancer .databend .ast ;
2+
3+ import sqlancer .Randomly ;
4+ import sqlancer .common .ast .BinaryOperatorNode ;
5+ import sqlancer .common .ast .newast .NewBinaryOperatorNode ;
6+ import sqlancer .common .ast .newast .Node ;
7+
8+ public class DatabendLikeOperation extends NewBinaryOperatorNode <DatabendExpression > {
9+
10+ public DatabendLikeOperation (Node <DatabendExpression > left , Node <DatabendExpression > right
11+ , DatabendLikeOperator op ) {
12+ super (left , right , op );
13+ }
14+
15+
16+ public enum DatabendLikeOperator implements BinaryOperatorNode .Operator {
17+ LIKE_OPERATOR ("LIKE" ,"like" );
18+
19+ private final String [] textRepresentations ;
20+
21+ DatabendLikeOperator (String ... text ){
22+ textRepresentations = text ;
23+ }
24+
25+ @ Override
26+ public String getTextRepresentation () {
27+ return Randomly .fromOptions (textRepresentations );
28+ }
29+ }
30+
31+ }
You can’t perform that action at this time.
0 commit comments