Skip to content

Atlas doesn’t support qualified names without db/cluster - no matter whether default or not #156

Open
@pPanda-beta

Description

@pPanda-beta

In those line, while we try to make a qualified name with either db='default' or cluster='default' it does not include it.
Nowhere atlas rest apis mentioned that they will consider "default" if not given for db/cluster.

qualified_name = table_name
if db and db != DEFAULT_DB_CLUSTER:
qualified_name = '{}.{}'.format(db, qualified_name)
if cluster and cluster != DEFAULT_DB_CLUSTER:
qualified_name = '{}@{}'.format(qualified_name, cluster)

Check this screenshot.

image

Test case:

make_table_qualified_name('abc', 'primary', 'default')

Expected Output:

default.abc@primary

Actual Output:

abc@primary

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions