-
Notifications
You must be signed in to change notification settings - Fork 1
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
How-to "PowerBI Desktop with CrateDB": a simpler way to connect (without pgODBC) #25
Comments
Dear Gennady, thank you for writing in and notifying us about this improvement to PowerBI. Does that mean we should update the setup & configuration walkthrough for PowerBI & CrateDB [1] accordingly? With kind regards, [1] https://github.com/crate/crate-howtos/blob/master/docs/integrations/powerbi-desktop.rst /cc @hammerhead, @proddata |
Hi, Andeas.
|
Hi @g-metan
Which CrateDB version are you using for testing? With version 4.5 and older, you would also have to grant permissions on the
However there also was a bug with versions 4.5 and lower with limited privileged user together with the default postgres driver, which should be resolved with 4.6 (https://community.crate.io/t/problem-with-powerbi-desktop-and-permissions/722/11) |
I am using CrateDB version 4.6.1 |
This sounds strange. I can't really replicate that 😟 cr> CREATE USER "tEsT" WITH ( password = 'te$t');
CREATE OK, 1 row affected (0.318 sec)
cr> SELECT * FROM sys.users;
+-------+----------+-----------+
| name | password | superuser |
+-------+----------+-----------+
| crate | NULL | TRUE |
| tEsT | ******** | FALSE |
+-------+----------+-----------+
SELECT 2 rows in set (0.003 sec)
cr> GRANT DQL TO "tEsT";
GRANT OK, 1 row affected (0.075 sec)
cr> SELECT * FROM sys.PRIVILEGES;
+---------+---------+---------+-------+-------+------+
| class | grantee | grantor | ident | state | type |
+---------+---------+---------+-------+-------+------+
| CLUSTER | tEsT | crate | NULL | GRANT | DQL |
+---------+---------+---------+-------+-------+------+
SELECT 1 row in set (0.002 sec)
|
CrateDB as Postgres lowercases all identifiers, that aren't specifically but in doubles quotes i.e. CREATE USER PowerBI_user WITH (password = 'pa$w0rd'); is equivalent to CREATE USER powerbi_user WITH (password = 'pa$w0rd'); but different to CREATE USER "PowerBI_user" WITH (password = 'pa$w0rd'); |
I followed SQL syntax in https://crate.io/docs/crate/reference/en/4.6/admin/privileges.html |
Update: PowerBI Desktop uses npgsql v. 4.0.10 to connect to Postgres datasource. |
Hi there,
In current version of PowerBI Desktop, there is dedicated PostgreSQL datasource in category "Databases", so no need to install PostgreSQL ODBC driver and configure DSN for CrateDB.
The text was updated successfully, but these errors were encountered: