Class SqlQueryConverter

java.lang.Object
org.apache.flink.table.planner.operations.converters.SqlQueryConverter
All Implemented Interfaces:
SqlNodeConverter<org.apache.calcite.sql.SqlNode>

public class SqlQueryConverter extends Object implements SqlNodeConverter<org.apache.calcite.sql.SqlNode>
A converter for query SqlNode, e.g., SqlSelect, SqlOrderBy, SqlTableRef.
  • Constructor Details

    • SqlQueryConverter

      public SqlQueryConverter()
  • Method Details

    • supportedSqlKinds

      public Optional<EnumSet<org.apache.calcite.sql.SqlKind>> supportedSqlKinds()
      Description copied from interface: SqlNodeConverter
      Returns the SqlKinds of SqlNodes that the SqlNodeConverter supports to convert.

      If a SqlNodeConverter returns a non-empty SqlKinds, The conversion framework will find the corresponding converter by matching the SqlKind of SqlNode instead of the class of SqlNode

      Specified by:
      supportedSqlKinds in interface SqlNodeConverter<org.apache.calcite.sql.SqlNode>
      See Also:
    • convertSqlNode

      public org.apache.flink.table.operations.Operation convertSqlNode(org.apache.calcite.sql.SqlNode node, SqlNodeConverter.ConvertContext context)
      Description copied from interface: SqlNodeConverter
      Convert the given validated SqlNode into an Operation.
      Specified by:
      convertSqlNode in interface SqlNodeConverter<org.apache.calcite.sql.SqlNode>
      Parameters:
      node - a validated SqlNode.
      context - the utilities and context information to convert