Class DescribeTableHandler


public class DescribeTableHandler extends DefaultSqlHandler
  • Constructor Details

  • Method Details

    • rewrite

      public org.apache.calcite.sql.SqlNode rewrite(org.apache.calcite.sql.SqlNode sqlNode) throws ForemanSetupException
      Rewrite the parse tree as SELECT ... FROM INFORMATION_SCHEMA.COLUMNS ...
      Overrides:
      rewrite in class DefaultSqlHandler
      Parameters:
      sqlNode - sql parse tree to be rewritten
      Returns:
      Rewritten sql parse tree
      Throws:
      ForemanSetupException
    • validateNode

      protected org.apache.calcite.util.Pair<org.apache.calcite.sql.SqlNode,org.apache.calcite.rel.type.RelDataType> validateNode(org.apache.calcite.sql.SqlNode sqlNode) throws org.apache.calcite.tools.ValidationException, org.apache.calcite.tools.RelConversionException, ForemanSetupException
      Overrides:
      validateNode in class DefaultSqlHandler
      Throws:
      org.apache.calcite.tools.ValidationException
      org.apache.calcite.tools.RelConversionException
      ForemanSetupException