Class MysqlSqlDialect


  • public class MysqlSqlDialect
    extends org.apache.calcite.sql.dialect.MysqlSqlDialect
    MySQL-specific SQL dialect with catalog casing filter support. Uses backtick (`) 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.MysqlSqlDialect

        DEFAULT_CONTEXT, ISNULL_FUNCTION, MYSQL_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
      MysqlSqlDialect​(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.MysqlSqlDialect

        emulateNullDirection, getCalendarPolicy, getCastSpec, requiresAliasForFromItems, rewriteSingleValueExpr, supportsAggregateFunction, supportsAggregateFunctionFilter, supportsAliasedValues, supportsCharSet, supportsGroupByWithRollup, supportsJoinType, supportsNestedAggregations, unparseCall, unparseOffsetFetch, unparseSqlIntervalQualifier
      • Methods inherited from class org.apache.calcite.sql.SqlDialect

        allowsAs, configureParser, configureParser, containsNonAscii, create, defaultNullDirection, emulateJoinTypeForCrossJoin, emulateNullDirectionWithIsNull, getConformance, getDatabaseProduct, getFormatModel, getNullCollation, getProduct, getQuotedCasing, getQuoting, getSingleRowTableName, getTypeSystem, getUnquotedCasing, hasImplicitTableAlias, identifierNeedsQuote, isCaseSensitive, prepareUnparse, quoteIdentifier, quoteIdentifier, quoteStringLiteral, quoteStringLiteral, quoteStringLiteralUnicode, quoteTimestampLiteral, rewriteMaxMin, rewriteMaxMinExpr, supportBooleanCaseWhen, supportsApproxCountDistinct, supportsDataType, supportsFunction, supportsGroupByLiteral, supportsGroupByWithCube, supportsImplicitTypeCoercion, supportsOffsetFetch, supportsTimestampPrecision, supportsWindowFunctions, unparseBoolLiteral, unparseDateTimeLiteral, unparseFetchUsingAnsi, unparseFetchUsingLimit, unparseLimit, unparseNumericLiteral, unparseOffset, unparseSqlDatetimeArithmetic, unparseSqlIntervalLiteral, unparseSqlSetOption, unparseTableScanHints, unparseTopN, unquoteStringLiteral
    • Field Detail

      • DEFAULT

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

      • MysqlSqlDialect

        public MysqlSqlDialect​(boolean catalogCasingFilter)
    • Method Detail

      • quoteIdentifier

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