Java Code Examples for org.apache.calcite.sql.type.ReturnTypes#ARG0_FORCE_NULLABLE

The following examples show how to use org.apache.calcite.sql.type.ReturnTypes#ARG0_FORCE_NULLABLE . 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: SqlNullifFunction.java    From Bats with Apache License 2.0 5 votes vote down vote up
public SqlNullifFunction() {
  // NOTE jvs 26-July-2006:  We fill in the type strategies here,
  // but normally they are not used because the validator invokes
  // rewriteCall to convert NULLIF into CASE early.  However,
  // validator rewrite can optionally be disabled, in which case these
  // strategies are used.
  super("NULLIF",
      SqlKind.NULLIF,
      ReturnTypes.ARG0_FORCE_NULLABLE,
      null,
      OperandTypes.COMPARABLE_UNORDERED_COMPARABLE_UNORDERED,
      SqlFunctionCategory.SYSTEM);
}
 
Example 2
Source File: SqlOverOperator.java    From Bats with Apache License 2.0 5 votes vote down vote up
public SqlOverOperator() {
  super(
      "OVER",
      SqlKind.OVER,
      20,
      true,
      ReturnTypes.ARG0_FORCE_NULLABLE,
      null,
      OperandTypes.ANY_ANY);
}
 
Example 3
Source File: SqlNullifFunction.java    From calcite with Apache License 2.0 5 votes vote down vote up
public SqlNullifFunction() {
  // NOTE jvs 26-July-2006:  We fill in the type strategies here,
  // but normally they are not used because the validator invokes
  // rewriteCall to convert NULLIF into CASE early.  However,
  // validator rewrite can optionally be disabled, in which case these
  // strategies are used.
  super("NULLIF",
      SqlKind.NULLIF,
      ReturnTypes.ARG0_FORCE_NULLABLE,
      null,
      OperandTypes.COMPARABLE_UNORDERED_COMPARABLE_UNORDERED,
      SqlFunctionCategory.SYSTEM);
}
 
Example 4
Source File: SqlOverOperator.java    From calcite with Apache License 2.0 5 votes vote down vote up
public SqlOverOperator() {
  super(
      "OVER",
      SqlKind.OVER,
      20,
      true,
      ReturnTypes.ARG0_FORCE_NULLABLE,
      null,
      OperandTypes.ANY_ANY);
}
 
Example 5
Source File: SqlFilterOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlFilterOperator() {
  super("FILTER", SqlKind.FILTER, 2, true, ReturnTypes.ARG0_FORCE_NULLABLE,
      null, OperandTypes.ANY_ANY);
}
 
Example 6
Source File: SqlFilterOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlFilterOperator() {
  super("FILTER", SqlKind.FILTER, 20, true, ReturnTypes.ARG0_FORCE_NULLABLE,
      null, OperandTypes.ANY_ANY);
}