Package org.apache.calcite.sql.dialect
Class DorisSqlDialect
java.lang.Object
org.apache.calcite.sql.SqlDialect
org.apache.calcite.sql.dialect.MysqlSqlDialect
org.apache.calcite.sql.dialect.StarRocksSqlDialect
org.apache.calcite.sql.dialect.DorisSqlDialect
A
SqlDialect implementation for the Doris database.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.sql.SqlDialect
SqlDialect.CalendarPolicy, SqlDialect.Context, SqlDialect.DatabaseProduct, SqlDialect.FakeUtil -
Field Summary
FieldsFields inherited from class org.apache.calcite.sql.dialect.StarRocksSqlDialect
DEFAULT_CONTEXT, STARROCKS_TYPE_SYSTEMFields inherited from class org.apache.calcite.sql.dialect.MysqlSqlDialect
ISNULL_FUNCTION, MYSQL_TYPE_SYSTEMFields 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 -
Method Summary
Modifier and TypeMethodDescription@Nullable SqlNodegetCastSpec(RelDataType type) Returns SqlNode for type in "cast(column as type)", which might be different between databases by type name, precision etc.voidunparseCall(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) Methods inherited from class org.apache.calcite.sql.dialect.StarRocksSqlDialect
prepareUnparse, supportsApproxCountDistinct, supportsGroupByWithRollup, supportsJoinType, supportsTimestampPrecision, unparseDateTimeLiteralMethods inherited from class org.apache.calcite.sql.dialect.MysqlSqlDialect
emulateNullDirection, getCalendarPolicy, requiresAliasForFromItems, rewriteSingleValueExpr, supportsAggregateFunction, supportsAggregateFunctionFilter, supportsAliasedValues, supportsCharSet, supportsNestedAggregations, unparseOffsetFetch, unparseSqlIntervalQualifierMethods 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, quoteIdentifier, quoteIdentifier, quoteIdentifier, quoteStringLiteral, quoteStringLiteral, quoteStringLiteralUnicode, quoteTimestampLiteral, rewriteMaxMin, rewriteMaxMinExpr, supportBooleanCaseWhen, supportGenerateSelectStar, supportsDataType, supportsFunction, supportsGroupByLiteral, supportsGroupByWithCube, supportsImplicitTypeCoercion, supportsOffsetFetch, supportsOrderByLiteral, supportsWindowFunctions, unparseBoolLiteral, unparseFetchUsingAnsi, unparseFetchUsingLimit, unparseLimit, unparseNumericLiteral, unparseOffset, unparseSqlDatetimeArithmetic, unparseSqlIntervalLiteral, unparseSqlSetOption, unparseTableScanHints, unparseTopN, unquoteStringLiteral
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
DorisSqlDialect
Creates a DorisSqlDialect.
-
-
Method Details
-
unparseCall
- Overrides:
unparseCallin classStarRocksSqlDialect
-
getCastSpec
Description copied from class:SqlDialectReturns SqlNode for type in "cast(column as type)", which might be different between databases by type name, precision etc.If this method returns null, the cast will be omitted. In the default implementation, this is the case for the NULL type, and therefore
CAST(NULL AS <nulltype>)is rendered asNULL.- Overrides:
getCastSpecin classStarRocksSqlDialect
-