You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrey Mashenkov (Jira)" <ji...@apache.org> on 2025/01/20 12:29:00 UTC
[jira] [Updated] (IGNITE-24261) Sql schema. Extend C++ Client API with supporting qualified names
[ https://issues.apache.org/jira/browse/IGNITE-24261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Mashenkov updated IGNITE-24261:
--------------------------------------
Description:
Let's support Sql grammar syntax in C++ client for table name parsing.
See `QualifiedName Java` class javadoc for details.
Let's make Table API in C++ client consistent with Java API.
Java API example:
{code:java}
interface IgniteTables {
/** Gets a list of all tables */
List<Table> tables();
/** Gets a table with specified name. */
@Nullable Table table(QualifiedName tableName);
@Nullable Table table(String tableName) {
return table(QualifiedName.parseof(tableName));
}
}
public interface Table {
/** Returns table's qualified name. */
QualifiedName tableName();
}
{code}
was:
Let's fix table cache in Apache.Ignite.Internal.Table, to support Sql-schemas.
Let's introduce new methods in Client.Tables that use {{QualifiedName}} instead of simple String to be consistent with Java API.
Java API example:
{code:java}
interface IgniteTables {
/** Gets a list of all tables */
List<Table> tables();
/** Gets a table with specified name. */
@Nullable Table table(QualifiedName tableName);
@Nullable Table table(String tableName) {
return table(QualifiedName.parseof(tableName));
}
}
public interface Table {
/** Returns table's qualified name. */
QualifiedName tableName();
}
{code}
> Sql schema. Extend C++ Client API with supporting qualified names
> -----------------------------------------------------------------
>
> Key: IGNITE-24261
> URL: https://issues.apache.org/jira/browse/IGNITE-24261
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Andrey Mashenkov
> Priority: Major
> Labels: .NET, ignite-3
>
> Let's support Sql grammar syntax in C++ client for table name parsing.
> See `QualifiedName Java` class javadoc for details.
> Let's make Table API in C++ client consistent with Java API.
> Java API example:
> {code:java}
> interface IgniteTables {
> /** Gets a list of all tables */
> List<Table> tables();
> /** Gets a table with specified name. */
> @Nullable Table table(QualifiedName tableName);
> @Nullable Table table(String tableName) {
> return table(QualifiedName.parseof(tableName));
> }
> }
> public interface Table {
> /** Returns table's qualified name. */
> QualifiedName tableName();
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)