[ https://issues.apache.org/jira/browse/IGNITE-24036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Mashenkov updated IGNITE-24036: -------------------------------------- Fix Version/s: 3.0 > 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 > Fix For: 3.0 > > Time Spent: 10m > Remaining Estimate: 0h > > 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)