@Override public Type getDataType() { // Get the function return value type, based on the type of the first argument. return getSessionFactoryHelper().findFunctionReturnType( getText(), resolveFunction(), getFirstChild() ); }
@Override protected void processAggregation(AST node, boolean inSelect) throws SemanticException { AggregateNode aggregateNode = (AggregateNode) node; aggregateNode.resolve(); }
private SQLFunction resolveFunction() { if ( sqlFunction == null ) { final String name = getText(); sqlFunction = getSessionFactoryHelper().findSQLFunction( getText() ); if ( sqlFunction == null ) { LOG.unableToResolveAggregateFunction( name ); sqlFunction = new StandardSQLFunction( name ); } } return sqlFunction; }
public void resolve() { resolveFunction(); }
public Type getFirstArgumentType() { AST argument = getFirstChild(); while ( argument != null ) { if ( argument instanceof SqlNode ) { final Type type = ( (SqlNode) argument ).getDataType(); if ( type != null ) { return type; } argument = argument.getNextSibling(); } } return null; }
private SQLFunction resolveFunction() { if ( sqlFunction == null ) { final String name = getText(); sqlFunction = getSessionFactoryHelper().findSQLFunction( getText() ); if ( sqlFunction == null ) { LOG.unableToResolveAggregateFunction( name ); sqlFunction = new StandardSQLFunction( name ); } } return sqlFunction; }
public void resolve() { resolveFunction(); }
public Type getFirstArgumentType() { AST argument = getFirstChild(); while ( argument != null ) { if ( argument instanceof SqlNode ) { final Type type = ( (SqlNode) argument ).getDataType(); if ( type != null ) { return type; } argument = argument.getNextSibling(); } } return null; }
@Override public Type getDataType() { // Get the function return value type, based on the type of the first argument. return getSessionFactoryHelper().findFunctionReturnType( getText(), resolveFunction(), getFirstChild() ); }
private SQLFunction resolveFunction() { if ( sqlFunction == null ) { final String name = getText(); sqlFunction = getSessionFactoryHelper().findSQLFunction( getText() ); if ( sqlFunction == null ) { LOG.unableToResolveAggregateFunction( name ); sqlFunction = new StandardSQLFunction( name ); } } return sqlFunction; }
@Override protected void processAggregation(AST node, boolean inSelect) throws SemanticException { AggregateNode aggregateNode = ( AggregateNode ) node; aggregateNode.resolve(); }
public void resolve() { resolveFunction(); }
public Type getFirstArgumentType() { AST argument = getFirstChild(); while ( argument != null ) { if ( argument instanceof SqlNode ) { final Type type = ( (SqlNode) argument ).getDataType(); if ( type != null ) { return type; } argument = argument.getNextSibling(); } } return null; }
@Override public Type getDataType() { // Get the function return value type, based on the type of the first argument. return getSessionFactoryHelper().findFunctionReturnType( getText(), resolveFunction(), getFirstChild() ); }
@Override protected void processAggregation(AST node, boolean inSelect) throws SemanticException { AggregateNode aggregateNode = ( AggregateNode ) node; aggregateNode.resolve(); }