Class InformixSqlDialect

java.lang.Object
org.apache.calcite.sql.SqlDialect
org.apache.calcite.sql.dialect.InformixSqlDialect

public class InformixSqlDialect extends SqlDialect
A SqlDialect implementation for the Informix database.
  • Field Details

  • Constructor Details

    • InformixSqlDialect

      public InformixSqlDialect(SqlDialect.Context context)
      Creates an InformixSqlDialect.
  • Method Details

    • supportsGroupByLiteral

      public boolean supportsGroupByLiteral()
      Description copied from class: SqlDialect
      Returns whether the dialect supports GROUP BY literals.

      For instance, in SqlDialect.DatabaseProduct.REDSHIFT, the following queries are illegal:

      
       select avg(salary)
       from emp
       group by true
      
       select avg(salary)
       from emp
       group by 'a', DATE '2022-01-01'
       
      Overrides:
      supportsGroupByLiteral in class SqlDialect
    • supportsAliasedValues

      public boolean supportsAliasedValues()
      Description copied from class: SqlDialect
      Returns whether the dialect supports VALUES in a sub-query with and an "AS t(column, ...)" values to define column names.

      Currently, only Oracle does not. For this, we generate "SELECT v0 AS c0, v1 AS c1 ... UNION ALL ...". We may need to refactor this method when we support VALUES for other dialects.

      Overrides:
      supportsAliasedValues in class SqlDialect