Java Code Examples for org.apache.calcite.sql.type.OperandTypes#ONE_OR_MORE

The following examples show how to use org.apache.calcite.sql.type.OperandTypes#ONE_OR_MORE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SqlGroupingIdFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
SqlGroupingIdFunction() {
  //noinspection deprecation
  super("GROUPING_ID", SqlKind.GROUPING_ID, ReturnTypes.BIGINT, null,
      OperandTypes.ONE_OR_MORE, SqlFunctionCategory.SYSTEM);
}
 
Example 2
Source File: SqlCountAggFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlCountAggFunction(String name) {
  this(name, CalciteSystemProperty.STRICT.value() ? OperandTypes.ANY : OperandTypes.ONE_OR_MORE);
}
 
Example 3
Source File: SqlGroupingFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
SqlGroupingFunction(String name) {
  super(name, SqlKind.GROUPING, ReturnTypes.BIGINT, null,
      OperandTypes.ONE_OR_MORE, SqlFunctionCategory.SYSTEM);
}
 
Example 4
Source File: SqlGroupingIdFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
SqlGroupingIdFunction() {
  //noinspection deprecation
  super("GROUPING_ID", SqlKind.GROUPING_ID, ReturnTypes.BIGINT, null,
      OperandTypes.ONE_OR_MORE, SqlFunctionCategory.SYSTEM);
}
 
Example 5
Source File: SqlCountAggFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlCountAggFunction(String name) {
  this(name, CalciteSystemProperty.STRICT.value() ? OperandTypes.ANY : OperandTypes.ONE_OR_MORE);
}
 
Example 6
Source File: SqlGroupingFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
SqlGroupingFunction(String name) {
  super(name, SqlKind.GROUPING, ReturnTypes.BIGINT, null,
      OperandTypes.ONE_OR_MORE, SqlFunctionCategory.SYSTEM);
}
 
Example 7
Source File: MockSqlOperatorTable.java    From calcite with Apache License 2.0 4 votes vote down vote up
public MyAggFunc() {
  super("myAggFunc", null, SqlKind.OTHER_FUNCTION, ReturnTypes.BIGINT, null,
      OperandTypes.ONE_OR_MORE, SqlFunctionCategory.USER_DEFINED_FUNCTION, false, false,
      Optionality.FORBIDDEN);
}