danny0405 commented on code in PR #2844:
URL: https://github.com/apache/calcite/pull/2844#discussion_r913732009


##########
core/src/main/java/org/apache/calcite/sql/SqlTableFunction.java:
##########
@@ -30,4 +32,17 @@ public interface SqlTableFunction {
    * @return strategy to infer the row type of a call to this function
    */
   SqlReturnTypeInference getRowTypeInference();
+
+  /**
+   * Returns the table parameter characteristics for <code>ordinal</code>th
+   * parameter to this table function.
+   *
+   * <p>Returns <code>null</code> if the <code>ordinal</code>th argument is
+   * not table parameter or the <code>ordinal</code> is smaller than 0 or
+   * the <code>ordinal</code> is greater than or equals to the number of
+   * parameters.
+   */
+  default @Nullable TableCharacteristic tableCharacteristic(int ordinal) {
+    return null;

Review Comment:
   Seems the functionality is only supported by window function ? Then moving 
this interface to `SqlWindowTableFunction` is more proper way.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to