Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pPanda-beta opened this issue Jul 19, 2020 · 0 comments

Comments

@pPanda-beta
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant