public class GreenplumDialect extends PostgreSqlDialect
Dialect for the GreenplumSQL database.Dialect.DatabaseProduct, Dialect.Datatype| Modifier and Type | Field and Description | 
|---|---|
static JdbcDialectFactory | 
FACTORY  | 
databaseProduct, permitsSelectNotInGroupBy, productVersion| Constructor and Description | 
|---|
GreenplumDialect(Connection connection)
Creates a GreenplumDialect. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
allowsCountDistinct()
Returns whether this Dialect supports distinct aggregations. 
 | 
boolean | 
allowsRegularExpressionInWhereClause()
Informs Mondrian if the dialect supports regular expressions
 when creating the 'where' or the 'having' clause. 
 | 
String | 
generateCountExpression(String exp)
Some databases, like Greenplum, don't include nulls as part
 of the results of a COUNT sql call. 
 | 
Dialect.DatabaseProduct | 
getDatabaseProduct()
Returns the database for this Dialect, or
  
Dialect.DatabaseProduct.UNKNOWN if the database is
 not a common database. | 
boolean | 
requiresAliasForFromQuery()
Returns whether this Dialect requires subqueries in the FROM clause
 to have an alias. 
 | 
boolean | 
requiresGroupByAlias()
Returns true if this Dialect can include expressions in the GROUP BY
 clause only by adding an expression to the SELECT clause and using
 its alias. 
 | 
boolean | 
supportsGroupingSets()
Returns whether this Dialect allows the GROUPING SETS construct in
 the GROUP BY clause. 
 | 
generateOrderByNulls, generateRegularExpression, getTypeallowsAs, allowsCompoundCountDistinct, allowsCountDistinctWithOtherAggs, allowsDdl, allowsDialectSharing, allowsFromQuery, allowsJoinOn, allowsMultipleCountDistinct, allowsMultipleDistinctSqlMeasures, allowsOrderByAlias, allowsSelectNotInGroupBy, appendHintsAfterFromClause, caseWhenElse, computeStatisticsProviders, deduceIdentifierQuoteString, deduceMaxColumnNameLength, deduceProductName, deduceProductVersion, deduceReadOnly, deduceSupportedResultSetStyles, deduceSupportsSelectNotInGroupBy, generateInline, generateInlineForAnsi, generateInlineGeneric, generateOrderByNullsAnsi, generateOrderItem, getMaxColumnNameLength, getProduct, getQuoteIdentifierString, getStatisticsProviders, isDatabase, needsExponent, quote, quoteBooleanLiteral, quoteDateLiteral, quoteDateLiteral, quoteIdentifier, quoteIdentifier, quoteIdentifier, quoteIdentifier, quoteNumericLiteral, quoteStringLiteral, quoteTimeLiteral, quoteTimestampLiteral, requiresHavingAlias, requiresOrderByAlias, requiresUnionOrderByExprToBeInSelectClause, requiresUnionOrderByOrdinal, supportsGroupByExpressions, supportsMultiValueInExpr, supportsResultSetConcurrency, supportsUnlimitedValueList, toString, toUpperpublic static final JdbcDialectFactory FACTORY
public GreenplumDialect(Connection connection) throws SQLException
connection - ConnectionSQLExceptionpublic boolean supportsGroupingSets()
DialectsupportsGroupingSets in interface DialectsupportsGroupingSets in class JdbcDialectImplpublic boolean requiresGroupByAlias()
DialectFor example, in such a dialect,
 SELECT x, x FROM t GROUP BY x
 
 would be illegal, but
 
 SELECT x AS a, x AS b FROM t ORDER BY a, b
 
 would be legal.
 Infobright is the only such dialect.
requiresGroupByAlias in interface DialectrequiresGroupByAlias in class JdbcDialectImplpublic boolean requiresAliasForFromQuery()
DialectrequiresAliasForFromQuery in interface DialectrequiresAliasForFromQuery in class PostgreSqlDialectDialect.allowsFromQuery()public boolean allowsCountDistinct()
DialectFor example, Access does not allow
 select count(distinct x) from t
 allowsCountDistinct in interface DialectallowsCountDistinct in class JdbcDialectImplpublic Dialect.DatabaseProduct getDatabaseProduct()
DialectDialect.DatabaseProduct.UNKNOWN if the database is
 not a common database.getDatabaseProduct in interface DialectgetDatabaseProduct in class PostgreSqlDialectpublic String generateCountExpression(String exp)
DialectgenerateCountExpression in interface DialectgenerateCountExpression in class JdbcDialectImplexp - The expression to wrap.public boolean allowsRegularExpressionInWhereClause()
DialectallowsRegularExpressionInWhereClause in interface DialectallowsRegularExpressionInWhereClause in class PostgreSqlDialectCopyright © 2017 Hitachi Vantara. All rights reserved.