Class PostgresqlSqlDialect


  • public class PostgresqlSqlDialect
    extends org.apache.calcite.sql.dialect.PostgresqlSqlDialect
    PostgreSQL-specific SQL dialect with catalog casing filter support. Uses double-quote (") for identifier quoting.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.calcite.sql.SqlDialect

        org.apache.calcite.sql.SqlDialect.CalendarPolicy, org.apache.calcite.sql.SqlDialect.Context, org.apache.calcite.sql.SqlDialect.DatabaseProduct, org.apache.calcite.sql.SqlDialect.FakeUtil
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.calcite.sql.SqlDialect DEFAULT  
      • Fields inherited from class org.apache.calcite.sql.dialect.PostgresqlSqlDialect

        DEFAULT_CONTEXT, POSTGRESQL_TYPE_SYSTEM
      • Fields inherited from class org.apache.calcite.sql.SqlDialect

        BUILT_IN_OPERATORS_LIST, EMPTY_CONTEXT, identifierEndQuoteString, identifierEscapedQuote, identifierQuoteString, literalEndQuoteString, literalEscapedQuote, literalQuoteString, LOGGER, nullCollation
    • Constructor Summary

      Constructors 
      Constructor Description
      PostgresqlSqlDialect​(boolean catalogCasingFilter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      StringBuilder quoteIdentifier​(StringBuilder buf, String identifier)  
      • Methods inherited from class org.apache.calcite.sql.dialect.PostgresqlSqlDialect

        getCastSpec, requiresAliasForFromItems, rewriteMaxMinExpr, rewriteSingleValueExpr, supportsCharSet, supportsFunction, supportsGroupByLiteral, supportsImplicitTypeCoercion, supportsNestedAggregations, unparseCall, unparseSqlSetOption
      • Methods inherited from class org.apache.calcite.sql.SqlDialect

        allowsAs, configureParser, configureParser, containsNonAscii, create, defaultNullDirection, emulateJoinTypeForCrossJoin, emulateNullDirection, emulateNullDirectionWithIsNull, getCalendarPolicy, getConformance, getDatabaseProduct, getFormatModel, getNullCollation, getProduct, getQuotedCasing, getQuoting, getSingleRowTableName, getTypeSystem, getUnquotedCasing, hasImplicitTableAlias, identifierNeedsQuote, isCaseSensitive, prepareUnparse, quoteIdentifier, quoteIdentifier, quoteStringLiteral, quoteStringLiteral, quoteStringLiteralUnicode, quoteTimestampLiteral, rewriteMaxMin, supportBooleanCaseWhen, supportsAggregateFunction, supportsAggregateFunctionFilter, supportsAliasedValues, supportsApproxCountDistinct, supportsDataType, supportsGroupByWithCube, supportsGroupByWithRollup, supportsJoinType, supportsOffsetFetch, supportsTimestampPrecision, supportsWindowFunctions, unparseBoolLiteral, unparseDateTimeLiteral, unparseFetchUsingAnsi, unparseFetchUsingLimit, unparseLimit, unparseNumericLiteral, unparseOffset, unparseOffsetFetch, unparseSqlDatetimeArithmetic, unparseSqlIntervalLiteral, unparseSqlIntervalQualifier, unparseTableScanHints, unparseTopN, unquoteStringLiteral
    • Field Detail

      • DEFAULT

        public static final org.apache.calcite.sql.SqlDialect DEFAULT
    • Constructor Detail

      • PostgresqlSqlDialect

        public PostgresqlSqlDialect​(boolean catalogCasingFilter)
    • Method Detail

      • quoteIdentifier

        public StringBuilder quoteIdentifier​(StringBuilder buf,
                                             String identifier)
        Overrides:
        quoteIdentifier in class org.apache.calcite.sql.SqlDialect