Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
ANSI standard[1] requires two methods for either table manager functions (DDL):
DROP TABLE [ IF EXISTS ] syntax
CREATE TABLE [ IF NOT EXISTS ] syntax
ALTER TABLE [ IF EXISTS ] syntax
for implement all these functionalities I offer to handle exceptions (TableAlreadyExistsException, TableNotExistsException)
TableManager#dropTable throws TableNotExistsException IgniteTables#createTable throws TableAlreadyExistsException IgniteTables#alterTable throws TableNotExistsException
Also, the twins of these methods with `IfNotExists` suffix (and them asynchronous analogs) would be removed.
[1] https://postgrespro.ru/docs/postgrespro/9.6/sql-altertable
Attachments
Issue Links
- is required by
-
IGNITE-15107 Integrate DDL handler into Ignite 3.0
- Resolved
- links to
We don't need to provide separate method for every case. Mentioned functionality could be achieved by simply catching an exception and ignoring it, if needed.