Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-4651

Support CREATE TABLE and DROP TABLE commands

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • sql

    Description

      This is an umbrella ticket for all tasks related to CREATE/DROP TABLE feature.

      Raw design:
      1) CREATE TABLE is performed using createCache, DROP TABLE is performed using destroyCache;
      2) We need to extend H2 parser to support "AFFINITY KEY" attribute;
      3) Caches will be created based on cache templates defined in IgniteConfiguration. There should be several predefined templates for the most common cases (e.g. PARTITIONED/REPLICATED). Template will be specified using WITH feature of H2 engine.
      4) Currently every cache lives inside it's own H2 schema. For user convenience we will have to allow different caches to share the same schema.
      5) Current SQL API are tightly coupled to particular cache. This leads to anecdotal situation when you cannot call CREATE TABLE on a cluster without caches. For this reason we will need better SQL API which is not bound to any cache.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: