/** * Test to see if it is the function COUNT(*) * * @return boolean true if function call to COUNT(*) */ public boolean isCountStar() { if (getOperator().isName("COUNT") && operandCount() == 1) { final SqlNode parm = operand(0); if (parm instanceof SqlIdentifier) { SqlIdentifier id = (SqlIdentifier) parm; if (id.isStar() && id.names.size() == 1) { return true; } } } return false; }
/** * Test to see if it is the function COUNT(*) * * @return boolean true if function call to COUNT(*) */ public boolean isCountStar() { if (getOperator().isName("COUNT") && operandCount() == 1) { final SqlNode parm = operand(0); if (parm instanceof SqlIdentifier) { SqlIdentifier id = (SqlIdentifier) parm; if (id.isStar() && id.names.size() == 1) { return true; } } } return false; }
private boolean isSimpleCount(SqlCall call) { if (call.getOperator().isName("COUNT") && call.operandCount() == 1) { final SqlNode parm = call.operand(0); if ((parm instanceof SqlIdentifier || parm instanceof SqlNumericLiteral) // && call.getFunctionQuantifier() == null) { return true; } } return false; }
public void lookupOperatorOverloads(SqlIdentifier opName, SqlFunctionCategory category, SqlSyntax syntax, List<SqlOperator> operatorList) { for (SqlOperator operator : this.operatorList) { if (operator.getSyntax() != syntax) { continue; } if (!opName.isSimple() || !operator.isName(opName.getSimple())) { continue; } if (category != null && category != category(operator) && !category.isUserDefinedNotSpecificFunction()) { continue; } operatorList.add(operator); } }
public void lookupOperatorOverloads(SqlIdentifier opName, SqlFunctionCategory category, SqlSyntax syntax, List<SqlOperator> operatorList) { for (SqlOperator operator : this.operatorList) { if (operator.getSyntax() != syntax) { continue; } if (!opName.isSimple() || !operator.isName(opName.getSimple())) { continue; } if (category != null && category != category(operator) && !category.isUserDefinedNotSpecificFunction()) { continue; } operatorList.add(operator); } }
if(sqlCall.getOperator().isName(strOperator)) { unsupportedOperatorCollector.setException(SqlUnsupportedException.ExceptionType.FUNCTION, "Dremio doesn't currently support " + sqlCall.getOperator().getName() + ".");
if(sqlCall.getOperator().isName(strOperator)) { unsupportedOperatorCollector.setException(SqlUnsupportedException.ExceptionType.FUNCTION, sqlCall.getOperator().getName() + " is not supported\n" +