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

Add tableDefinition and zoneDefinition methods to IgniteCatalog

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • 3.1
    • sql
    • Docs Required, Release Notes Required

    Description

      IgniteCatalog API allows creating tables using a strongly-typed object model (generates and executes SQL for you from a TableDefinition).

      However, there is no way to get the TableDefinition for an existing table. Use cases:

      • Inspect table information in a strongly-typed way (as opposed to executing an Ignite-specific SQL query and extracting the data from a ResultSet)
      • Get the definition of an existing table and create another one with similar settings (using TableDefinition.toBuilder)

      Same applies to ZoneDefinition.

      Extend IgniteCatalog interface with the following methods:

          CompletableFuture<TableDefinition> tableDefinitionAsync(String name);
          TableDefinition tableDefinition(String name);
          
          CompletableFuture<ZoneDefinition> zoneDefinitionAsync(String name);
          ZoneDefinition zoneDefinition(String name);
      

      Attachments

        Issue Links

          Activity

            People

              Mikhail Pochatkin Mikhail Pochatkin
              ptupitsyn Pavel Tupitsyn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h