{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
public RelDataType inferReturnType( SqlOperatorBinding opBinding) { RelDataType type = getComponentType( opBinding.getTypeFactory(), opBinding.collectOperandTypes()); if (null == type) { return null; } return SqlTypeUtil.createMultisetType( opBinding.getTypeFactory(), type, false); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { writer.keyword(getName()); // "MULTISET" or "ARRAY" final SqlWriter.Frame frame = writer.startList("[", "]"); for (SqlNode operand : call.getOperandList()) { writer.sep(","); operand.unparse(writer, leftPrec, rightPrec); } writer.endList(frame); } }
public RelDataType inferReturnType( SqlOperatorBinding opBinding) { RelDataType type = getComponentType( opBinding.getTypeFactory(), opBinding.collectOperandTypes()); if (null == type) { return null; } return SqlTypeUtil.createMultisetType( opBinding.getTypeFactory(), type, false); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { writer.keyword(getName()); // "MULTISET" or "ARRAY" final SqlWriter.Frame frame = writer.startList("[", "]"); for (SqlNode operand : call.getOperandList()) { writer.sep(","); operand.unparse(writer, leftPrec, rightPrec); } writer.endList(frame); } }
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { final List<RelDataType> argTypes = SqlTypeUtil.deriveAndCollectTypes( callBinding.getValidator(), callBinding.getScope(), callBinding.operands()); if (argTypes.size() == 0) { throw callBinding.newValidationError(RESOURCE.requireAtLeastOneArg()); } final RelDataType componentType = getComponentType( callBinding.getTypeFactory(), argTypes); if (null == componentType) { if (throwOnFailure) { throw callBinding.newValidationError(RESOURCE.needSameTypeParameter()); } return false; } return true; }
{if ("" != null) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
public boolean checkOperandTypes( SqlCallBinding callBinding, boolean throwOnFailure) { final List<RelDataType> argTypes = SqlTypeUtil.deriveAndCollectTypes( callBinding.getValidator(), callBinding.getScope(), callBinding.operands()); if (argTypes.size() == 0) { throw callBinding.newValidationError(RESOURCE.requireAtLeastOneArg()); } final RelDataType componentType = getComponentType( callBinding.getTypeFactory(), argTypes); if (null == componentType) { if (throwOnFailure) { throw callBinding.newValidationError(RESOURCE.needSameTypeParameter()); } return false; } return true; }
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( pos.plus(getPos()), SqlParserUtil.toNodeArray(args));} } else {
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( s.end(this), args);} } else {
{if (true) return SqlStdOperatorTable.MULTISET_VALUE.createCall( pos.plus(getPos()), SqlParserUtil.toNodeArray(args));} } else {