Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

This FLIP is another step in the story of bringing Table API and FlinkSQL closer to each other.

It adds missing drop methods to TableEnvironment (alter functionality will be added in follow up FLIP(s)).

There are already existing dropTemporaryTable and dropTemporaryView however still missing dropTable and dropView

Public Interfaces

  • TableEnvironment

Proposed Changes

/**
* Drops a table in a given fully qualified path.
 *
* @return true if a table existed in the given path and was removed
*/
boolean dropTable(String path);

/**
* Drops a table in a given fully qualified path.
*
* @return true if a view existed in the given path and was removed
*/
boolean dropView(String path);

Compatibility, Deprecation, and Migration Plan

  • No migration required.

Test Plan

  • Unit tests/ ITtests

Rejected Alternatives

None.