Class DropTableHandler


public class DropTableHandler extends DefaultSqlHandler
  • Constructor Details

  • Method Details

    • getPlan

      public PhysicalPlan getPlan(org.apache.calcite.sql.SqlNode sqlNode)
      Function resolves the schema and invokes the drop method (while IF EXISTS statement is used function invokes the drop method only if table exists). Raises an exception if the schema is immutable.
      Overrides:
      getPlan in class DefaultSqlHandler
      Parameters:
      sqlNode - - SqlDropTable (SQL parse tree of drop table [if exists] query)
      Returns:
      - Single row indicating drop succeeded or table is not found while IF EXISTS statement is used, raise exception otherwise