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 2024/12/24 19:36:00 UTC

[jira] [Assigned] (IGNITE-24036) Sql schema. Introduce QualifiedName class

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

Andrey Mashenkov reassigned IGNITE-24036:
-----------------------------------------

    Assignee: Andrey Mashenkov

> Sql schema. Introduce QualifiedName class
> -----------------------------------------
>
>                 Key: IGNITE-24036
>                 URL: https://issues.apache.org/jira/browse/IGNITE-24036
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Pavel Pereslegin
>            Assignee: Andrey Mashenkov
>            Priority: Major
>              Labels: ignite-3
>
> Let’s introduce a QualifiedName class, which represents a named schema object, and provides factory methods for better UX and implements parsing rules for object’s names in a single place.
> {code:java}
> /** Class represents a table name and contains only factory methods. */
> final class QualifiedName {
>     /** Parses and normalizes given name, and returns an object, which represents qualified name. */
>     static QualifiedName parseof(String name);
>     /** Normalize schemaName and objectName and returns an object, which represents  qualified name.*/
>     static QualifiedName of(String schemaName, String objectName);
>     /** Resolves (maybe lazily) given simple name against default schema. */
>     static QualifiedName fromSimple(String simpleName) {
>         // Effectively the same as next.
>         return of(DEFAULT_SCHEMA, simpleName);
>     }
> }
> {code}



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