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

SQL: ADD COLUMN doesn't support user types but DROP COLUMN does

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.6
    • 2.8
    • sql
    • None

    Description

      Looks like ALTER COLUMN commands could be used only on a subset of supported types (that could be used in CREATE TABLE syntax):

      https://apacheignite-sql.readme.io/docs/data-types

      But using query entities we can provide to use a field that has user types.

      This fields can be used in 

      ALTER TABLE CACHE_NAME DROP COLUMN COLUMN_NAME

      But it can't be used as next:

      ALTER TABLE CACHE_NAME  ADD COLUMN COLUMN_NAME 'type'

      Where type is a user's one.

      Possible we should think about supporting POJO and enums.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aealeksandrov Andrei Aleksandrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: