flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [flink] twalthr commented on a change in pull request #8062: [FLINK-11884][table] Implement expression resolution on top of new Expressions
Date Mon, 08 Apr 2019 16:19:50 GMT
twalthr commented on a change in pull request #8062:  [FLINK-11884][table] Implement expression
resolution on top of new Expressions
URL: https://github.com/apache/flink/pull/8062#discussion_r273102653
 
 

 ##########
 File path: flink-table/flink-table-planner/src/main/java/org/apache/flink/table/expressions/rules/ResolverRules.java
 ##########
 @@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.table.expressions.rules;
+
+import org.apache.flink.annotation.PublicEvolving;
+import org.apache.flink.table.expressions.UnresolvedReferenceExpression;
+
+/**
+ * Contains instances of {@link ResolverRule}.
+ */
+@PublicEvolving
+public final class ResolverRules {
+
+	/**
+	 * Rule that resolves flatten call. See {@link FlattenCallRule} for details.
+	 */
+	public static final ResolverRule FLATTEN_CALL = new FlattenCallRule();
+
+	/**
+	 * Resolves {@link UnresolvedReferenceExpression}. See {@link ReferenceResolverRule} for
details.
+	 */
+	public static final ResolverRule FIELD_RESOLVE = new ReferenceResolverRule();
+
+	/**
+	 * Resolves call based on argument types. See {@link ResolveCallByArgumentsRule} for details.
+	 */
+	public static final ResolverRule RESOLVE_CALL = new ResolveCallByArgumentsRule();
+
+	/**
+	 * Concatenates over aggregations with corresponding over window. See {@link OverWindowResolverRule}
for details.
+	 */
+	public static final ResolverRule OVER_WINDOWS = new OverWindowResolverRule();
+
+	/**
+	 * Resolves '*' expressions to corresponding fields of inputs. See {@link StarReferenceFlatteningRule}
for details.
+	 */
+	public static final ResolverRule FLATTEN_STAR_REFERENCE = new StarReferenceFlatteningRule();
+
+	/*
+		NON DEFAULT RULES
+	 */
+
+	/**
+	 * Used in sort operation. It assures expression is wrapped in ordering expression. See
{@link WrapInOrderRule}
+	 * for details.
+	 */
+	public static final ResolverRule WRAP_IN_ORDER = new WrapInOrderRule();
+
+	/**
+	 * Used in projection operation. It derives name for expression. See {@link NameExpressionRule}
for details.
+	 */
+	public static final ResolverRule NAME_EXPRESSION = new NameExpressionRule();
 
 Review comment:
   This rule is more projection related and should be put into the projection builder.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message