Class DorisSqlDialect


public class DorisSqlDialect extends StarRocksSqlDialect
A SqlDialect implementation for the Doris database.
  • Field Details

    • DEFAULT

      public static final SqlDialect DEFAULT
  • Constructor Details

    • DorisSqlDialect

      public DorisSqlDialect(SqlDialect.Context context)
      Creates a DorisSqlDialect.
  • Method Details

    • unparseCall

      public void unparseCall(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
      Overrides:
      unparseCall in class StarRocksSqlDialect
    • getCastSpec

      public @Nullable SqlNode getCastSpec(RelDataType type)
      Description copied from class: SqlDialect
      Returns 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 as NULL.

      Overrides:
      getCastSpec in class StarRocksSqlDialect