It looks QuestDB-Connect ignores the username parsed from the URL and always defaults to "admin".
This is caused by a wrong constant in our connect() function.
See the screenshot:
The line 94 should get() "user", not "username".
Reproducer
Open hello_world.py and change the URL ("questdb://user:quest@localhost:8812/main")
Run the Hello World example
Watch Connect to still use the admin username when connecting to QuestDB instead of user as specified in the URL.
Expected behaviour
The username from the URL should be used.
The fix is trivial, but I would send a PR with a fix, but I don't understand the test setup well enough to write a test for this.
It looks QuestDB-Connect ignores the username parsed from the URL and always defaults to "admin". This is caused by a wrong constant in our connect() function.
See the screenshot:
The line 94 should
get()
"user", not "username".Reproducer
("questdb://user:quest@localhost:8812/main")
admin
username when connecting to QuestDB instead ofuser
as specified in the URL.Expected behaviour The username from the URL should be used.
The fix is trivial, but I would send a PR with a fix, but I don't understand the test setup well enough to write a test for this.