[ 
https://issues.apache.org/jira/browse/IGNITE-23185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Pochatkin reassigned IGNITE-23185:
------------------------------------------

    Assignee: Mikhail Pochatkin

> Add tableDefinition and zoneDefinition methods to IgniteCatalog
> ---------------------------------------------------------------
>
>                 Key: IGNITE-23185
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23185
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Pavel Tupitsyn
>            Assignee: Mikhail Pochatkin
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.1
>
>
> 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:
> {code:java}
>     CompletableFuture<TableDefinition> tableDefinitionAsync(String name);
>     TableDefinition tableDefinition(String name);
>     
>     CompletableFuture<ZoneDefinition> zoneDefinitionAsync(String name);
>     ZoneDefinition zoneDefinition(String name);
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to