import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Use the instructions below to get started with the Spice.ai Power BI Connector—an ADBC-based connector that enables Microsoft Power BI users to easily connect to and visualize data loaded in Spice.ai Enterprise and Spice Cloud Platform instances.
Download the latest spice_adbc.mez file from the releases page
Copy to your Power BI Custom Connectors directory: C:\Users\[USERNAME]\Documents\Microsoft Power BI Desktop\Custom Connectors
Enable Uncertified Connectors in Power BI Desktop settings and restart Power BI Desktop.
Open Power BI Desktop.
Click on Get Data → More....
In the dialog, select Spice.ai connector.
Click Connect.
Enter the ADBC (Arrow Flight SQL) Endpoint:
grpc+tls://flight.spiceai.io:443grpc://<server-ip>:50051grpc+tls://<server-ip>:50051Data Connectivity mode:
OK.Authentication option:
Connect to establish the connection.After establishing a connection, Spice datasets appear under their respective schemas, with the default schema being spice.public. When writing native queries, use the PostgreSQL dialect, as Spice is built on this standard.
The following Apache Arrow / DataFusion SQL types are supported. Other types will result in a Unable to understand the type for column error. Please report an issue if support for additional types is required.
| Arrow Type | DataFusion SQL Type | Power Query M Type |
|---|---|---|
| Boolean | BOOLEAN | Logical |
| Int16 | SMALLINT | Int16 |
| Int32 | INTEGER | Int32 |
| Int64 | BIGINT | Int64 |
| Float32 | REAL | Single |
| Float64 | DOUBLE | Double |
| Decimal128 / Decimal256 | DECIMAL | Decimal |
| Utf8 | VARCHAR | Text |
| Date32 / Date64 | DATE | Date |
| Time32 / Time64 | TIME | Time |
| Timestamp | TIMESTAMP | DateTime |
| List / LargeList / FixedSizeList / ListView / LargeListView | ARRAY | Text |
| Interval | INTERVAL | Text |
| Struct | STRUCT | Text |
To work around this limitation, use views to manually convert LargeUtf8 columns to Utf8 by casting them with ::TEXT.
Example:
Due to lack of support for the timestampdiff function in the DataFusion query engine, date and time arithmetic operations—such as subtracting or adding timestamps and intervals—are not supported and will result in an error similar to Invalid function 'timestampdiff'.\nDid you mean 'to_timestamp'? (Internal; ExecuteQuery). For example:
Please report an issue if support for date or time arithmetic operations is required.