|
39 | 39 | import com.starrocks.analysis.FunctionParams;
|
40 | 40 | import com.starrocks.analysis.GroupByClause;
|
41 | 41 | import com.starrocks.analysis.GroupingFunctionCallExpr;
|
| 42 | +import com.starrocks.analysis.InformationFunction; |
42 | 43 | import com.starrocks.analysis.IntLiteral;
|
43 | 44 | import com.starrocks.analysis.JoinOperator;
|
44 | 45 | import com.starrocks.analysis.LargeIntLiteral;
|
|
98 | 99 | import io.trino.sql.tree.CoalesceExpression;
|
99 | 100 | import io.trino.sql.tree.ComparisonExpression;
|
100 | 101 | import io.trino.sql.tree.Cube;
|
| 102 | +import io.trino.sql.tree.CurrentCatalog; |
| 103 | +import io.trino.sql.tree.CurrentSchema; |
101 | 104 | import io.trino.sql.tree.CurrentTime;
|
102 | 105 | import io.trino.sql.tree.DataType;
|
103 | 106 | import io.trino.sql.tree.DateTimeDataType;
|
@@ -1083,6 +1086,16 @@ protected ParseNode visitCurrentTime(CurrentTime node, ParseTreeContext context)
|
1083 | 1086 | return new FunctionCallExpr(node.getFunction().getName(), new ArrayList<>());
|
1084 | 1087 | }
|
1085 | 1088 |
|
| 1089 | + @Override |
| 1090 | + protected ParseNode visitCurrentCatalog(CurrentCatalog node, ParseTreeContext context) { |
| 1091 | + return new InformationFunction("CATALOG"); |
| 1092 | + } |
| 1093 | + |
| 1094 | + @Override |
| 1095 | + protected ParseNode visitCurrentSchema(CurrentSchema node, ParseTreeContext context) { |
| 1096 | + return new InformationFunction("SCHEMA"); |
| 1097 | + } |
| 1098 | + |
1086 | 1099 | @Override
|
1087 | 1100 | protected ParseNode visitSearchedCaseExpression(SearchedCaseExpression node, ParseTreeContext context) {
|
1088 | 1101 | return new CaseExpr(null, visit(node.getWhenClauses(), context, CaseWhenClause.class),
|
|
0 commit comments